From 9e874579a3d35b6a89acefa2792ff97236256dc2 Mon Sep 17 00:00:00 2001 From: bcook <> Date: Mon, 27 Apr 2015 03:37:06 +0000 Subject: 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(-) (limited to 'src') diff --git a/src/lib/libcrypto/arc4random/getentropy_linux.c b/src/lib/libcrypto/arc4random/getentropy_linux.c index 29e7efe234..4fce68c25b 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 29e7efe234..4fce68c25b 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 -- cgit v1.2.3-55-g6feb