diff options
-rw-r--r-- | src/openssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openssl.c b/src/openssl.c index 9c40e57..22c6e85 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -7812,7 +7812,7 @@ static struct randL_state *randL_getstate(lua_State *L) { } /* randL_getstate() */ #ifndef HAVE_SYS_SYSCTL_H -#define HAVE_SYS_SYSCTL_H (!defined __sun && !defined _AIX) +#define HAVE_SYS_SYSCTL_H (BSD || __GLIBC__) #endif #if HAVE_SYS_SYSCTL_H @@ -7820,7 +7820,7 @@ static struct randL_state *randL_getstate(lua_State *L) { #endif #ifndef HAVE_RANDOM_UUID -#define HAVE_RANDOM_UUID (defined __linux) /* RANDOM_UUID is an enum, not macro */ +#define HAVE_RANDOM_UUID (HAVE_SYS_SYSCTL_H && defined __linux) /* RANDOM_UUID is an enum, not macro */ #endif #ifndef HAVE_KERN_URND |