summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormiod <>2015-10-30 15:45:57 +0000
committermiod <>2015-10-30 15:45:57 +0000
commit857a26cd73249023ce1882995ef8e654cd48f0e9 (patch)
tree84a9b3b6e525872d6da1bb745e197b557604917e /src
parent7ae41bf6bae5fce9138ee2a54bc12996051b19fd (diff)
downloadopenbsd-857a26cd73249023ce1882995ef8e654cd48f0e9.tar.gz
openbsd-857a26cd73249023ce1882995ef8e654cd48f0e9.tar.bz2
openbsd-857a26cd73249023ce1882995ef8e654cd48f0e9.zip
Pull in <sys/types.h> to get ssize_t or <stdint.h> to get uint32_t, instead of
relying upon previously included headers to do this, to enhance portability; from Pascal Cuoq, libressl github pull request #52
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/bio/bss_bio.c3
-rw-r--r--src/lib/libssl/src/crypto/bio/bss_bio.c3
-rw-r--r--src/regress/lib/libc/arc4random-fork/arc4random-fork.c1
-rw-r--r--src/regress/lib/libcrypto/base64/base64test.c1
4 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/bss_bio.c b/src/lib/libcrypto/bio/bss_bio.c
index 26ae962aeb..b5f13eb35c 100644
--- a/src/lib/libcrypto/bio/bss_bio.c
+++ b/src/lib/libcrypto/bio/bss_bio.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bss_bio.c,v 1.20 2014/06/12 15:49:28 deraadt Exp $ */ 1/* $OpenBSD: bss_bio.c,v 1.21 2015/10/30 15:45:57 miod Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -78,6 +78,7 @@
78#include <limits.h> 78#include <limits.h>
79#include <stdlib.h> 79#include <stdlib.h>
80#include <string.h> 80#include <string.h>
81#include <sys/types.h>
81 82
82#include <openssl/bio.h> 83#include <openssl/bio.h>
83#include <openssl/err.h> 84#include <openssl/err.h>
diff --git a/src/lib/libssl/src/crypto/bio/bss_bio.c b/src/lib/libssl/src/crypto/bio/bss_bio.c
index 26ae962aeb..b5f13eb35c 100644
--- a/src/lib/libssl/src/crypto/bio/bss_bio.c
+++ b/src/lib/libssl/src/crypto/bio/bss_bio.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bss_bio.c,v 1.20 2014/06/12 15:49:28 deraadt Exp $ */ 1/* $OpenBSD: bss_bio.c,v 1.21 2015/10/30 15:45:57 miod Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -78,6 +78,7 @@
78#include <limits.h> 78#include <limits.h>
79#include <stdlib.h> 79#include <stdlib.h>
80#include <string.h> 80#include <string.h>
81#include <sys/types.h>
81 82
82#include <openssl/bio.h> 83#include <openssl/bio.h>
83#include <openssl/err.h> 84#include <openssl/err.h>
diff --git a/src/regress/lib/libc/arc4random-fork/arc4random-fork.c b/src/regress/lib/libc/arc4random-fork/arc4random-fork.c
index c1e87d21c9..4bc9c634f1 100644
--- a/src/regress/lib/libc/arc4random-fork/arc4random-fork.c
+++ b/src/regress/lib/libc/arc4random-fork/arc4random-fork.c
@@ -23,6 +23,7 @@
23#include <stdlib.h> 23#include <stdlib.h>
24#include <string.h> 24#include <string.h>
25#include <unistd.h> 25#include <unistd.h>
26#include <stdint.h>
26 27
27#define CHECK(x) assert(x) 28#define CHECK(x) assert(x)
28#define CHECK_EQ(a, b) assert((a) == (b)) 29#define CHECK_EQ(a, b) assert((a) == (b))
diff --git a/src/regress/lib/libcrypto/base64/base64test.c b/src/regress/lib/libcrypto/base64/base64test.c
index 17dcfaf302..ed494b6d40 100644
--- a/src/regress/lib/libcrypto/base64/base64test.c
+++ b/src/regress/lib/libcrypto/base64/base64test.c
@@ -20,6 +20,7 @@
20#include <err.h> 20#include <err.h>
21#include <stdio.h> 21#include <stdio.h>
22#include <string.h> 22#include <string.h>
23#include <sys/types.h>
23 24
24#define BUF_SIZE 128 25#define BUF_SIZE 128
25 26