From 80de5d2613d0796e3c06bc8a8569deb88dffd2ed Mon Sep 17 00:00:00 2001 From: beck Date: Sat, 12 Jul 2014 15:43:49 +0000 Subject: [PATCH] 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@ --- lib/libcrypto/arc4random/getentropy_linux.c | 4 +++- lib/libcrypto/crypto/getentropy_linux.c | 4 +++- 2 files changed, 6 insertions(+), 2 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 @@ -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 -- 2.20.1