2011-03-02 02:32:04 -05:00
|
|
|
$OpenBSD: patch-stun_tests_test-bind_c,v 1.4 2011/03/02 07:32:04 jasper Exp $
|
|
|
|
--- stun/tests/test-bind.c.orig Tue Mar 9 17:34:55 2010
|
|
|
|
+++ stun/tests/test-bind.c Sat Feb 19 09:45:19 2011
|
2010-09-22 10:28:59 -04:00
|
|
|
@@ -50,9 +50,6 @@
|
2009-08-20 13:09:00 -04:00
|
|
|
#include <winsock2.h>
|
|
|
|
#include <ws2tcpip.h>
|
2010-09-22 10:28:59 -04:00
|
|
|
|
2009-08-20 13:09:00 -04:00
|
|
|
-#define MSG_DONTWAIT 0
|
|
|
|
-#define MSG_NOSIGNAL 0
|
|
|
|
-
|
|
|
|
#define alarm(...)
|
|
|
|
#define close closesocket
|
|
|
|
#else
|
2010-09-22 10:28:59 -04:00
|
|
|
@@ -60,6 +57,11 @@
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <arpa/inet.h>
|
2009-08-20 13:09:00 -04:00
|
|
|
#include <netdb.h>
|
2010-09-22 10:28:59 -04:00
|
|
|
+#endif
|
|
|
|
+
|
2009-08-20 13:09:00 -04:00
|
|
|
+#if defined(_WIN32) || defined(__OpenBSD__)
|
|
|
|
+#define MSG_DONTWAIT 0
|
|
|
|
+#define MSG_NOSIGNAL 0
|
2010-09-22 10:28:59 -04:00
|
|
|
#endif
|
2009-09-09 18:13:08 -04:00
|
|
|
|
2010-09-22 10:28:59 -04:00
|
|
|
#undef NDEBUG /* ensure assertions are built-in */
|