Browse Source

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.
OPENBSD_5_8
bcook 9 years ago
parent
commit
fd9b2358f2
2 changed files with 2 additions and 4 deletions
  1. +1
    -2
      src/lib/libcrypto/arc4random/getentropy_linux.c
  2. +1
    -2
      src/lib/libcrypto/crypto/getentropy_linux.c

+ 1
- 2
src/lib/libcrypto/arc4random/getentropy_linux.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: getentropy_linux.c,v 1.38 2015/04/27 03:37:06 bcook Exp $ */
/* $OpenBSD: getentropy_linux.c,v 1.39 2015/06/13 02:33:58 bcook Exp $ */
/*
* Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@ -28,7 +28,6 @@
#include <sys/resource.h>
#include <sys/syscall.h>
#ifdef SYS__sysctl
#include <sys/sysctl.h>
#include <linux/sysctl.h>
#endif
#include <sys/statvfs.h>


+ 1
- 2
src/lib/libcrypto/crypto/getentropy_linux.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: getentropy_linux.c,v 1.38 2015/04/27 03:37:06 bcook Exp $ */
/* $OpenBSD: getentropy_linux.c,v 1.39 2015/06/13 02:33:58 bcook Exp $ */
/*
* Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@ -28,7 +28,6 @@
#include <sys/resource.h>
#include <sys/syscall.h>
#ifdef SYS__sysctl
#include <sys/sysctl.h>
#include <linux/sysctl.h>
#endif
#include <sys/statvfs.h>


Loading…
Cancel
Save