diff --git a/arc4random.c b/arc4random.c index 254c12b6..fc2c97bc 100644 --- a/arc4random.c +++ b/arc4random.c @@ -167,7 +167,7 @@ arc4_seed_win32(void) } #endif -#if defined(_EVENT_HAVE_SYS_SYSCTL_H) +#if defined(_EVENT_HAVE_SYS_SYSCTL_H) && defined(_EVENT_HAVE_SYSCTL) #if _EVENT_HAVE_DECL_CTL_KERN && _EVENT_HAVE_DECL_KERN_RANDOM && _EVENT_HAVE_DECL_RANDOM_UUID #define TRY_SEED_SYSCTL_LINUX static int diff --git a/configure.in b/configure.in index 14a0936f..8a9211d4 100644 --- a/configure.in +++ b/configure.in @@ -332,6 +332,7 @@ AC_CHECK_FUNCS([ \ strsep \ strtok_r \ strtoll \ + sysctl \ unsetenv \ vasprintf \ ])