From eceb64a5ee4980a652cddf226f4e7a0d18080a3b Mon Sep 17 00:00:00 2001 From: William Ahern Date: Sat, 25 Jun 2016 05:12:26 +0000 Subject: temporarily address issue #54 by copying solution from lunix and autoguess project --- src/openssl.c | 4 ++-- 1 file 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 -- cgit v1.2.3-55-g6feb