summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbcook <>2015-06-13 02:33:58 +0000
committerbcook <>2015-06-13 02:33:58 +0000
commit7046960ffae4141275822862cb7065584b59d3ae (patch)
tree5307d3b336e6082a1185fc3c4d9150c728382032
parent9d6d7f7cdb30dbe38e9e9706b374fd26c1ca588d (diff)
downloadopenbsd-7046960ffae4141275822862cb7065584b59d3ae.tar.gz
openbsd-7046960ffae4141275822862cb7065584b59d3ae.tar.bz2
openbsd-7046960ffae4141275822862cb7065584b59d3ae.zip
Remove unneeded sys/sysctl.h on linux.
This only provides the sysctl wrapper in glibc, which we do not use and is not available in other libc implementations for Linux. Thanks to ncopa from github.
-rw-r--r--src/lib/libcrypto/arc4random/getentropy_linux.c3
-rw-r--r--src/lib/libcrypto/crypto/getentropy_linux.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/arc4random/getentropy_linux.c b/src/lib/libcrypto/arc4random/getentropy_linux.c
index 4fce68c25b..05fb95c4bb 100644
--- a/src/lib/libcrypto/arc4random/getentropy_linux.c
+++ b/src/lib/libcrypto/arc4random/getentropy_linux.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getentropy_linux.c,v 1.38 2015/04/27 03:37:06 bcook Exp $ */ 1/* $OpenBSD: getentropy_linux.c,v 1.39 2015/06/13 02:33:58 bcook Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> 4 * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@@ -28,7 +28,6 @@
28#include <sys/resource.h> 28#include <sys/resource.h>
29#include <sys/syscall.h> 29#include <sys/syscall.h>
30#ifdef SYS__sysctl 30#ifdef SYS__sysctl
31#include <sys/sysctl.h>
32#include <linux/sysctl.h> 31#include <linux/sysctl.h>
33#endif 32#endif
34#include <sys/statvfs.h> 33#include <sys/statvfs.h>
diff --git a/src/lib/libcrypto/crypto/getentropy_linux.c b/src/lib/libcrypto/crypto/getentropy_linux.c
index 4fce68c25b..05fb95c4bb 100644
--- a/src/lib/libcrypto/crypto/getentropy_linux.c
+++ b/src/lib/libcrypto/crypto/getentropy_linux.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getentropy_linux.c,v 1.38 2015/04/27 03:37:06 bcook Exp $ */ 1/* $OpenBSD: getentropy_linux.c,v 1.39 2015/06/13 02:33:58 bcook Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> 4 * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@@ -28,7 +28,6 @@
28#include <sys/resource.h> 28#include <sys/resource.h>
29#include <sys/syscall.h> 29#include <sys/syscall.h>
30#ifdef SYS__sysctl 30#ifdef SYS__sysctl
31#include <sys/sysctl.h>
32#include <linux/sysctl.h> 31#include <linux/sysctl.h>
33#endif 32#endif
34#include <sys/statvfs.h> 33#include <sys/statvfs.h>