git: 66439659982c - main - getentropy: restore unistd.h include

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Fri, 22 Nov 2024 18:08:53 UTC
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"