summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Kim <justin.kim@collabora.com>2018-06-13 13:59:09 +0900
committerOlivier CrĂȘte <olivier.crete@collabora.com>2018-06-18 11:16:27 -0400
commitf4e39e8465d5cbc91d77385392a6ffd19d496593 (patch)
treec703358de900b69a352941631cbfb940d53c880d
parent3770519e53c8fd096efd1ad7958645c01d62e5c0 (diff)
downloadlibnice-f4e39e8465d5cbc91d77385392a6ffd19d496593.tar.gz
test-bind: define MSG_NOSIGNAL if undefined
MacOS X and Windows don't have MSG_NOSIGNAL. Signed-off-by: Justin Kim <justin.kim@collabora.com>
-rw-r--r--stun/tests/test-bind.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stun/tests/test-bind.c b/stun/tests/test-bind.c
index 2cf4feb..a3d4753 100644
--- a/stun/tests/test-bind.c
+++ b/stun/tests/test-bind.c
@@ -50,7 +50,6 @@
#include <ws2tcpip.h>
#define MSG_DONTWAIT 0
-#define MSG_NOSIGNAL 0
#define alarm(...)
#define close closesocket
@@ -65,6 +64,9 @@
#undef NDEBUG /* ensure assertions are built-in */
#include <assert.h>
+#ifndef MSG_NOSIGNAL
+#define MSG_NOSIGNAL 0
+#endif
static int listen_dgram (void)
{