Browse Source

include header needed by older linux kernels

not all versions of <linux/random.h> include <linux/types.h> by default
OPENBSD_5_7
bcook 10 years ago
parent
commit
d926e49a0b
2 changed files with 4 additions and 2 deletions
  1. +2
    -1
      src/lib/libcrypto/arc4random/getentropy_linux.c
  2. +2
    -1
      src/lib/libcrypto/crypto/getentropy_linux.c

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

@ -1,4 +1,4 @@
/* $OpenBSD: getentropy_linux.c,v 1.35 2014/08/28 01:00:57 bcook Exp $ */
/* $OpenBSD: getentropy_linux.c,v 1.36 2014/10/11 16:44:05 bcook Exp $ */
/* /*
* Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@ -49,6 +49,7 @@
#include <time.h> #include <time.h>
#include <openssl/sha.h> #include <openssl/sha.h>
#include <linux/types.h>
#include <linux/random.h> #include <linux/random.h>
#include <linux/sysctl.h> #include <linux/sysctl.h>
#ifdef HAVE_GETAUXVAL #ifdef HAVE_GETAUXVAL


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

@ -1,4 +1,4 @@
/* $OpenBSD: getentropy_linux.c,v 1.35 2014/08/28 01:00:57 bcook Exp $ */
/* $OpenBSD: getentropy_linux.c,v 1.36 2014/10/11 16:44:05 bcook Exp $ */
/* /*
* Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> * Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@ -49,6 +49,7 @@
#include <time.h> #include <time.h>
#include <openssl/sha.h> #include <openssl/sha.h>
#include <linux/types.h>
#include <linux/random.h> #include <linux/random.h>
#include <linux/sysctl.h> #include <linux/sysctl.h>
#ifdef HAVE_GETAUXVAL #ifdef HAVE_GETAUXVAL


Loading…
Cancel
Save