diff options
author | 2016-06-25 05:12:26 +0000 | |
---|---|---|
committer | 2016-06-25 05:12:26 +0000 | |
commit | eceb64a5ee4980a652cddf226f4e7a0d18080a3b (patch) | |
tree | 5176ee21eeed0d375ece4f60478c384d067d8a49 /src | |
parent | d99465ce769657b6946190377cc8a5223f5e8261 (diff) | |
download | luaossl-eceb64a5ee4980a652cddf226f4e7a0d18080a3b.tar.gz luaossl-eceb64a5ee4980a652cddf226f4e7a0d18080a3b.tar.bz2 luaossl-eceb64a5ee4980a652cddf226f4e7a0d18080a3b.zip |
temporarily address issue #54 by copying solution from lunix and autoguess project
Diffstat (limited to 'src')
-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 |