From 984c9f3828b196006b94af11a5b8ccbae3df68ee Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 8 Jul 2026 22:12:29 +0200 Subject: [PATCH] Include unistd.h unconditionally on !windows --- configure.ac | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 56de1501..771a0cab 100644 --- a/configure.ac +++ b/configure.ac @@ -940,9 +940,7 @@ AS_IF([test "x$EMSCRIPTEN" = "x"],[ AC_MSG_CHECKING(for getrandom with a standard API) AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include -#ifdef HAVE_UNISTD_H -# include -#endif +#include #ifdef HAVE_SYS_RANDOM_H # include #endif @@ -960,9 +958,7 @@ if (&getrandom != NULL) { AC_MSG_CHECKING(for getentropy with a standard API) AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include -#ifdef HAVE_UNISTD_H -# include -#endif +#include #ifdef HAVE_SYS_RANDOM_H # include #endif