summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbcook <bcook@openbsd.org>2014-08-24 16:08:30 +0000
committerbcook <bcook@openbsd.org>2014-08-24 16:08:30 +0000
commit70eb4da385d88095f23e59d7c99c00fe49f9fa47 (patch)
tree759203a34a3c2d2cfbb6a0b62c59037e2036269a
parentInclude <sys/select.h> to get select (diff)
downloadwireguard-openbsd-70eb4da385d88095f23e59d7c99c00fe49f9fa47.tar.xz
wireguard-openbsd-70eb4da385d88095f23e59d7c99c00fe49f9fa47.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--lib/libcrypto/bio/bss_dgram.c3
-rw-r--r--lib/libssl/src/crypto/bio/bss_dgram.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libcrypto/bio/bss_dgram.c b/lib/libcrypto/bio/bss_dgram.c
index afce2e52900..9e8cb9024e3 100644
--- a/lib/libcrypto/bio/bss_dgram.c
+++ b/lib/libcrypto/bio/bss_dgram.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bss_dgram.c,v 1.32 2014/07/11 12:17:46 miod Exp $ */
+/* $OpenBSD: bss_dgram.c,v 1.33 2014/08/24 16:08:30 bcook Exp $ */
/*
* DTLS implementation written by Nagendra Modadugu
* (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -58,6 +58,7 @@
*/
#include <sys/socket.h>
+#include <sys/time.h>
#include <netinet/in.h>
diff --git a/lib/libssl/src/crypto/bio/bss_dgram.c b/lib/libssl/src/crypto/bio/bss_dgram.c
index afce2e52900..9e8cb9024e3 100644
--- a/lib/libssl/src/crypto/bio/bss_dgram.c
+++ b/lib/libssl/src/crypto/bio/bss_dgram.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bss_dgram.c,v 1.32 2014/07/11 12:17:46 miod Exp $ */
+/* $OpenBSD: bss_dgram.c,v 1.33 2014/08/24 16:08:30 bcook Exp $ */
/*
* DTLS implementation written by Nagendra Modadugu
* (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -58,6 +58,7 @@
*/
#include <sys/socket.h>
+#include <sys/time.h>
#include <netinet/in.h>