summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2014-07-12 15:43:50 +0000
committerBob Beck <beck@cvs.openbsd.org>2014-07-12 15:43:50 +0000
commit5ea82a759638e52c9147469bf1c240afd43f265c (patch)
treecbcfb5c009a75996e48f709481f3da630bcc90d9 /lib
parente18fb0875566f64efbece5410fedc80437864a1c (diff)
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 'lib')
-rw-r--r--lib/libcrypto/arc4random/getentropy_linux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libcrypto/arc4random/getentropy_linux.c b/lib/libcrypto/arc4random/getentropy_linux.c
index f1320d24d50..294b23037f4 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.19 2014/07/12 14:46:31 deraadt Exp $ */
+/* $OpenBSD: getentropy_linux.c,v 1.20 2014/07/12 15:43:49 beck Exp $ */
/*
* Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@@ -24,7 +24,9 @@
#include <sys/ioctl.h>
#include <sys/resource.h>
#include <sys/syscall.h>
+#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
+#endif
#include <sys/statvfs.h>
#include <sys/socket.h>
#include <sys/mount.h>