diff options
author | bcook <> | 2014-10-11 16:44:05 +0000 |
---|---|---|
committer | bcook <> | 2014-10-11 16:44:05 +0000 |
commit | 0a63f0cf49369e1926567ab62e04e3355cedf0cd (patch) | |
tree | da6e91f3dccb9dab86f70c6a5dfed7b7829f997c /src/lib | |
parent | a525d58bbbff71b93f3e37d4528289d7ebf986f8 (diff) | |
download | openbsd-0a63f0cf49369e1926567ab62e04e3355cedf0cd.tar.gz openbsd-0a63f0cf49369e1926567ab62e04e3355cedf0cd.tar.bz2 openbsd-0a63f0cf49369e1926567ab62e04e3355cedf0cd.zip |
include header needed by older linux kernels
not all versions of <linux/random.h> include <linux/types.h> by default
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/arc4random/getentropy_linux.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/crypto/getentropy_linux.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/arc4random/getentropy_linux.c b/src/lib/libcrypto/arc4random/getentropy_linux.c index 4e1a267931..37e03ed590 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.35 2014/08/28 01:00:57 bcook Exp $ */ | 1 | /* $OpenBSD: getentropy_linux.c,v 1.36 2014/10/11 16:44:05 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> |
@@ -49,6 +49,7 @@ | |||
49 | #include <time.h> | 49 | #include <time.h> |
50 | #include <openssl/sha.h> | 50 | #include <openssl/sha.h> |
51 | 51 | ||
52 | #include <linux/types.h> | ||
52 | #include <linux/random.h> | 53 | #include <linux/random.h> |
53 | #include <linux/sysctl.h> | 54 | #include <linux/sysctl.h> |
54 | #ifdef HAVE_GETAUXVAL | 55 | #ifdef HAVE_GETAUXVAL |
diff --git a/src/lib/libcrypto/crypto/getentropy_linux.c b/src/lib/libcrypto/crypto/getentropy_linux.c index 4e1a267931..37e03ed590 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.35 2014/08/28 01:00:57 bcook Exp $ */ | 1 | /* $OpenBSD: getentropy_linux.c,v 1.36 2014/10/11 16:44:05 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> |
@@ -49,6 +49,7 @@ | |||
49 | #include <time.h> | 49 | #include <time.h> |
50 | #include <openssl/sha.h> | 50 | #include <openssl/sha.h> |
51 | 51 | ||
52 | #include <linux/types.h> | ||
52 | #include <linux/random.h> | 53 | #include <linux/random.h> |
53 | #include <linux/sysctl.h> | 54 | #include <linux/sysctl.h> |
54 | #ifdef HAVE_GETAUXVAL | 55 | #ifdef HAVE_GETAUXVAL |