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 | 786a01fab559f6ab4164e12f83db9bdfcef7a018 (patch) | |
tree | 45d9f4ebc0f3a988d5cc0f27b65dea00cc41a9ef | |
parent | 5109c3509ca83154f8e05909b29a9289e014f451 (diff) |
Not all Linux libc's include linux/sysctl.h in sys/sysctl.h.
Include it if we have the sysctl syscall.
-rw-r--r-- | lib/libcrypto/crypto/getentropy_linux.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libcrypto/crypto/getentropy_linux.c b/lib/libcrypto/crypto/getentropy_linux.c index 29e7efe234a..4fce68c25b3 100644 --- a/lib/libcrypto/crypto/getentropy_linux.c +++ b/lib/libcrypto/crypto/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> |