Commit f4e39e84 authored by Justin Kim's avatar Justin Kim Committed by Olivier Crête

test-bind: define MSG_NOSIGNAL if undefined

MacOS X and Windows don't have MSG_NOSIGNAL.
Signed-off-by: default avatarJustin Kim <justin.kim@collabora.com>
parent 3770519e
...@@ -50,7 +50,6 @@ ...@@ -50,7 +50,6 @@
#include <ws2tcpip.h> #include <ws2tcpip.h>
#define MSG_DONTWAIT 0 #define MSG_DONTWAIT 0
#define MSG_NOSIGNAL 0
#define alarm(...) #define alarm(...)
#define close closesocket #define close closesocket
...@@ -65,6 +64,9 @@ ...@@ -65,6 +64,9 @@
#undef NDEBUG /* ensure assertions are built-in */ #undef NDEBUG /* ensure assertions are built-in */
#include <assert.h> #include <assert.h>
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
#endif
static int listen_dgram (void) static int listen_dgram (void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment