Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2024 18:08:53 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 66439659982c - main - getentropy: restore unistd.h include
Message-ID:  <202411221808.4AMI8r9P016965@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=66439659982c00f66d0fe002820eaa6610f69ff1

commit 66439659982c00f66d0fe002820eaa6610f69ff1
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-11-22 18:06:09 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-11-22 18:08:41 +0000

    getentropy: restore unistd.h include
    
    It is needed for SSP support.
    
    Reported by: netchild, Shawn Webb
    Fixes: 62dab3d016ab ("getentropy: Remove fallback code")
    Sponsored by: The FreeBSD Foundation
---
 lib/libc/gen/getentropy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/libc/gen/getentropy.c b/lib/libc/gen/getentropy.c
index e87796ace58c..ff5475f9fdb0 100644
--- a/lib/libc/gen/getentropy.c
+++ b/lib/libc/gen/getentropy.c
@@ -31,6 +31,7 @@
 
 #include <errno.h>
 #include <signal.h>
+#include <unistd.h>
 #include <ssp/ssp.h>
 
 #include "libc_private.h"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411221808.4AMI8r9P016965>