ff7f4b96b0
from tom murphy (MAINTAINER)
26 lines
610 B
Plaintext
26 lines
610 B
Plaintext
$OpenBSD: patch-stun_tests_test-bind_c,v 1.3 2010/09/22 14:29:00 jasper Exp $
|
|
--- stun/tests/test-bind.c.orig Mon Sep 13 11:34:38 2010
|
|
+++ stun/tests/test-bind.c Mon Sep 13 11:35:18 2010
|
|
@@ -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 */
|