From 94be377a56006cabf7ee4cf48207d121edb93a6c Mon Sep 17 00:00:00 2001 From: bcook <> Date: Mon, 27 Apr 2015 03:37:06 +0000 Subject: [PATCH] Not all Linux libc's include linux/sysctl.h in sys/sysctl.h. Include it if we have the sysctl syscall. --- src/lib/libcrypto/arc4random/getentropy_linux.c | 5 +++-- src/lib/libcrypto/crypto/getentropy_linux.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/libcrypto/arc4random/getentropy_linux.c b/src/lib/libcrypto/arc4random/getentropy_linux.c index 29e7efe2..4fce68c2 100644 --- a/src/lib/libcrypto/arc4random/getentropy_linux.c +++ b/src/lib/libcrypto/arc4random/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 @@ -27,8 +27,9 @@ #include #include #include -#ifdef HAVE_SYS_SYSCTL_H +#ifdef SYS__sysctl #include +#include #endif #include #include diff --git a/src/lib/libcrypto/crypto/getentropy_linux.c b/src/lib/libcrypto/crypto/getentropy_linux.c index 29e7efe2..4fce68c2 100644 --- a/src/lib/libcrypto/crypto/getentropy_linux.c +++ b/src/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 @@ -27,8 +27,9 @@ #include #include #include -#ifdef HAVE_SYS_SYSCTL_H +#ifdef SYS__sysctl #include +#include #endif #include #include