diff options
author | bcook <> | 2014-08-24 16:08:30 +0000 |
---|---|---|
committer | bcook <> | 2014-08-24 16:08:30 +0000 |
commit | b6dc5c66e710237ddd83a9234e14c61c56af0238 (patch) | |
tree | 0d45594533db4645573c05c38da3f86f3ad7b52b | |
parent | d86fb436c0ae7b678d988d6ad4908632889f557d (diff) | |
download | openbsd-b6dc5c66e710237ddd83a9234e14c61c56af0238.tar.gz openbsd-b6dc5c66e710237ddd83a9234e14c61c56af0238.tar.bz2 openbsd-b6dc5c66e710237ddd83a9234e14c61c56af0238.zip |
Include <sys/time.h> to get struct timeval
The crypto/bio/bss_dgram.c file assumes that another file indirectly
includes <stdlib.h> that includes <sys/time.h>.
from Jonas 'Sortie' Termansen
ok deraadt@ tedu@
-rw-r--r-- | src/lib/libcrypto/bio/bss_dgram.c | 3 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/bio/bss_dgram.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/bss_dgram.c b/src/lib/libcrypto/bio/bss_dgram.c index afce2e5290..9e8cb9024e 100644 --- a/src/lib/libcrypto/bio/bss_dgram.c +++ b/src/lib/libcrypto/bio/bss_dgram.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bss_dgram.c,v 1.32 2014/07/11 12:17:46 miod Exp $ */ | 1 | /* $OpenBSD: bss_dgram.c,v 1.33 2014/08/24 16:08:30 bcook Exp $ */ |
2 | /* | 2 | /* |
3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
@@ -58,6 +58,7 @@ | |||
58 | */ | 58 | */ |
59 | 59 | ||
60 | #include <sys/socket.h> | 60 | #include <sys/socket.h> |
61 | #include <sys/time.h> | ||
61 | 62 | ||
62 | #include <netinet/in.h> | 63 | #include <netinet/in.h> |
63 | 64 | ||
diff --git a/src/lib/libssl/src/crypto/bio/bss_dgram.c b/src/lib/libssl/src/crypto/bio/bss_dgram.c index afce2e5290..9e8cb9024e 100644 --- a/src/lib/libssl/src/crypto/bio/bss_dgram.c +++ b/src/lib/libssl/src/crypto/bio/bss_dgram.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bss_dgram.c,v 1.32 2014/07/11 12:17:46 miod Exp $ */ | 1 | /* $OpenBSD: bss_dgram.c,v 1.33 2014/08/24 16:08:30 bcook Exp $ */ |
2 | /* | 2 | /* |
3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
@@ -58,6 +58,7 @@ | |||
58 | */ | 58 | */ |
59 | 59 | ||
60 | #include <sys/socket.h> | 60 | #include <sys/socket.h> |
61 | #include <sys/time.h> | ||
61 | 62 | ||
62 | #include <netinet/in.h> | 63 | #include <netinet/in.h> |
63 | 64 | ||