diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2015-04-27 03:37:07 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2015-04-27 03:37:07 +0000 |
commit | b72c00aa6158318bbdc4abea54e32c47683d44c5 (patch) | |
tree | 22aa34354c60604c5671f5947cd711f57f3ee6bf /lib/libcrypto | |
parent | 9d32dcfad230ef72f97a440f122b626063c01327 (diff) |
Not all Linux libc's include linux/sysctl.h in sys/sysctl.h.
Include it if we have the sysctl syscall.
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/arc4random/getentropy_linux.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libcrypto/arc4random/getentropy_linux.c b/lib/libcrypto/arc4random/getentropy_linux.c index 29e7efe234a..4fce68c25b3 100644 --- a/lib/libcrypto/arc4random/getentropy_linux.c +++ b/lib/libcrypto/arc4random/getentropy_linux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getentropy_linux.c,v 1.37 2015/03/22 13:28:03 bcook Exp $ */ +/* $OpenBSD: getentropy_linux.c,v 1.38 2015/04/27 03:37:06 bcook Exp $ */ /* * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> @@ -27,8 +27,9 @@ #include <sys/ioctl.h> #include <sys/resource.h> #include <sys/syscall.h> -#ifdef HAVE_SYS_SYSCTL_H +#ifdef SYS__sysctl #include <sys/sysctl.h> +#include <linux/sysctl.h> #endif #include <sys/statvfs.h> #include <sys/socket.h> |