summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbcook <bcook@openbsd.org>2014-07-09 23:46:14 +0000
committerbcook <bcook@openbsd.org>2014-07-09 23:46:14 +0000
commit6b12a48066480adf979331e245b67f5da0434614 (patch)
treee316fedf2b5477e29669dda4f57a21aa482ef4da
parentregen (diff)
downloadwireguard-openbsd-6b12a48066480adf979331e245b67f5da0434614.tar.xz
wireguard-openbsd-6b12a48066480adf979331e245b67f5da0434614.zip
include <limits.h> for LONG_MIN/LONG_MAX.
Also remove <sys/filio.h> added from previous commit. This was the wrong way to get FIONBIO. ok jsing@
-rw-r--r--lib/libcrypto/bio/b_sock.c4
-rw-r--r--lib/libssl/src/crypto/bio/b_sock.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcrypto/bio/b_sock.c b/lib/libcrypto/bio/b_sock.c
index cd57643b941..8e86383cc6f 100644
--- a/lib/libcrypto/bio/b_sock.c
+++ b/lib/libcrypto/bio/b_sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: b_sock.c,v 1.49 2014/07/09 15:19:52 bcook Exp $ */
+/* $OpenBSD: b_sock.c,v 1.50 2014/07/09 23:46:14 bcook Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,7 +56,6 @@
* [including the GNU Public Licence.]
*/
-#include <sys/filio.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
@@ -65,6 +64,7 @@
#include <netinet/tcp.h>
#include <errno.h>
+#include <limits.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/lib/libssl/src/crypto/bio/b_sock.c b/lib/libssl/src/crypto/bio/b_sock.c
index cd57643b941..8e86383cc6f 100644
--- a/lib/libssl/src/crypto/bio/b_sock.c
+++ b/lib/libssl/src/crypto/bio/b_sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: b_sock.c,v 1.49 2014/07/09 15:19:52 bcook Exp $ */
+/* $OpenBSD: b_sock.c,v 1.50 2014/07/09 23:46:14 bcook Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,7 +56,6 @@
* [including the GNU Public Licence.]
*/
-#include <sys/filio.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
@@ -65,6 +64,7 @@
#include <netinet/tcp.h>
#include <errno.h>
+#include <limits.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>