summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbcook <>2015-06-13 02:33:58 +0000
committerbcook <>2015-06-13 02:33:58 +0000
commitda86a9658c227bfdb16fc46762295a922d8ffaff (patch)
tree5307d3b336e6082a1185fc3c4d9150c728382032 /src
parentc3d234c2ed36636bcd9ceba3bdef8b59929b6c81 (diff)
downloadopenbsd-da86a9658c227bfdb16fc46762295a922d8ffaff.tar.gz
openbsd-da86a9658c227bfdb16fc46762295a922d8ffaff.tar.bz2
openbsd-da86a9658c227bfdb16fc46762295a922d8ffaff.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.
Diffstat (limited to 'src')
-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>