1ab3df167a
- various cleanups from tom murphy (MAINTAINER) with tweaks by me.
26 lines
610 B
Plaintext
26 lines
610 B
Plaintext
$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
|
|
@@ -50,9 +50,6 @@
|
|
#include <winsock2.h>
|
|
#include <ws2tcpip.h>
|
|
|
|
-#define MSG_DONTWAIT 0
|
|
-#define MSG_NOSIGNAL 0
|
|
-
|
|
#define alarm(...)
|
|
#define close closesocket
|
|
#else
|
|
@@ -60,6 +57,11 @@
|
|
#include <sys/socket.h>
|
|
#include <arpa/inet.h>
|
|
#include <netdb.h>
|
|
+#endif
|
|
+
|
|
+#if defined(_WIN32) || defined(__OpenBSD__)
|
|
+#define MSG_DONTWAIT 0
|
|
+#define MSG_NOSIGNAL 0
|
|
#endif
|
|
|
|
#undef NDEBUG /* ensure assertions are built-in */
|