diff options
author | beck <> | 2014-07-12 15:43:49 +0000 |
---|---|---|
committer | beck <> | 2014-07-12 15:43:49 +0000 |
commit | 4de5898f74c073043a59155f0e691eb58c7a7d01 (patch) | |
tree | 5d1affbb36705f8d3ed3b9651df6429fea25c2e8 /src/lib | |
parent | be62ec7782f11e6015eaa953859a4ea240c4ed8b (diff) | |
download | openbsd-4de5898f74c073043a59155f0e691eb58c7a7d01.tar.gz openbsd-4de5898f74c073043a59155f0e691eb58c7a7d01.tar.bz2 openbsd-4de5898f74c073043a59155f0e691eb58c7a7d01.zip |
guard inclusion of sys/sysctl.h so we can detect at compile time and
keep linux distros happy that don't have it.
ok bcook@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/arc4random/getentropy_linux.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/crypto/getentropy_linux.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libcrypto/arc4random/getentropy_linux.c b/src/lib/libcrypto/arc4random/getentropy_linux.c index f1320d24d5..294b23037f 100644 --- a/src/lib/libcrypto/arc4random/getentropy_linux.c +++ b/src/lib/libcrypto/arc4random/getentropy_linux.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getentropy_linux.c,v 1.19 2014/07/12 14:46:31 deraadt Exp $ */ | 1 | /* $OpenBSD: getentropy_linux.c,v 1.20 2014/07/12 15:43:49 beck Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> | 4 | * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> |
@@ -24,7 +24,9 @@ | |||
24 | #include <sys/ioctl.h> | 24 | #include <sys/ioctl.h> |
25 | #include <sys/resource.h> | 25 | #include <sys/resource.h> |
26 | #include <sys/syscall.h> | 26 | #include <sys/syscall.h> |
27 | #ifdef HAVE_SYS_SYSCTL_H | ||
27 | #include <sys/sysctl.h> | 28 | #include <sys/sysctl.h> |
29 | #endif | ||
28 | #include <sys/statvfs.h> | 30 | #include <sys/statvfs.h> |
29 | #include <sys/socket.h> | 31 | #include <sys/socket.h> |
30 | #include <sys/mount.h> | 32 | #include <sys/mount.h> |
diff --git a/src/lib/libcrypto/crypto/getentropy_linux.c b/src/lib/libcrypto/crypto/getentropy_linux.c index f1320d24d5..294b23037f 100644 --- a/src/lib/libcrypto/crypto/getentropy_linux.c +++ b/src/lib/libcrypto/crypto/getentropy_linux.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getentropy_linux.c,v 1.19 2014/07/12 14:46:31 deraadt Exp $ */ | 1 | /* $OpenBSD: getentropy_linux.c,v 1.20 2014/07/12 15:43:49 beck Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> | 4 | * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> |
@@ -24,7 +24,9 @@ | |||
24 | #include <sys/ioctl.h> | 24 | #include <sys/ioctl.h> |
25 | #include <sys/resource.h> | 25 | #include <sys/resource.h> |
26 | #include <sys/syscall.h> | 26 | #include <sys/syscall.h> |
27 | #ifdef HAVE_SYS_SYSCTL_H | ||
27 | #include <sys/sysctl.h> | 28 | #include <sys/sysctl.h> |
29 | #endif | ||
28 | #include <sys/statvfs.h> | 30 | #include <sys/statvfs.h> |
29 | #include <sys/socket.h> | 31 | #include <sys/socket.h> |
30 | #include <sys/mount.h> | 32 | #include <sys/mount.h> |