diff options
author | Justin Kim <justin.kim@collabora.com> | 2018-06-13 13:59:09 +0900 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2018-06-18 11:16:27 -0400 |
commit | f4e39e8465d5cbc91d77385392a6ffd19d496593 (patch) | |
tree | c703358de900b69a352941631cbfb940d53c880d /stun | |
parent | 3770519e53c8fd096efd1ad7958645c01d62e5c0 (diff) | |
download | libnice-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>
Diffstat (limited to 'stun')
-rw-r--r-- | stun/tests/test-bind.c | 4 |
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) { |