summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbcook <>2014-08-24 16:08:30 +0000
committerbcook <>2014-08-24 16:08:30 +0000
commit192855a39ecdd30f74a9bd2376cc9c469e136cd0 (patch)
tree0d45594533db4645573c05c38da3f86f3ad7b52b /src
parente5807c79018e2edb9a10ac038bf83ae1e3d17191 (diff)
downloadopenbsd-192855a39ecdd30f74a9bd2376cc9c469e136cd0.tar.gz
openbsd-192855a39ecdd30f74a9bd2376cc9c469e136cd0.tar.bz2
openbsd-192855a39ecdd30f74a9bd2376cc9c469e136cd0.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@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/bio/bss_dgram.c3
-rw-r--r--src/lib/libssl/src/crypto/bio/bss_dgram.c3
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