From: beck Date: Sat, 12 Jul 2014 15:43:49 +0000 (+0000) Subject: guard inclusion of sys/sysctl.h so we can detect at compile time and X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=80de5d2613d0796e3c06bc8a8569deb88dffd2ed;p=openbsd 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@ --- 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 @@ -24,7 +24,9 @@ #include #include #include +#ifdef HAVE_SYS_SYSCTL_H #include +#endif #include #include #include diff --git a/lib/libcrypto/crypto/getentropy_linux.c b/lib/libcrypto/crypto/getentropy_linux.c index f1320d24d50..294b23037f4 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.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 @@ -24,7 +24,9 @@ #include #include #include +#ifdef HAVE_SYS_SYSCTL_H #include +#endif #include #include #include