From 3e3a5746bf2e82123111ef7a676cdb9ce1e1ea13 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. --- lib/libcrypto/arc4random/getentropy_linux.c | 5 +++-- lib/libcrypto/crypto/getentropy_linux.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/libcrypto/arc4random/getentropy_linux.c b/lib/libcrypto/arc4random/getentropy_linux.c index 29e7efe234a..4fce68c25b3 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.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/lib/libcrypto/crypto/getentropy_linux.c b/lib/libcrypto/crypto/getentropy_linux.c index 29e7efe234a..4fce68c25b3 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.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 -- 2.20.1