From: bcook Date: Mon, 27 Apr 2015 03:37:06 +0000 (+0000) Subject: Not all Linux libc's include linux/sysctl.h in sys/sysctl.h. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3e3a5746bf2e82123111ef7a676cdb9ce1e1ea13;p=openbsd Not all Linux libc's include linux/sysctl.h in sys/sysctl.h. Include it if we have the sysctl syscall. --- 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