$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 #include -#define MSG_DONTWAIT 0 -#define MSG_NOSIGNAL 0 - #define alarm(...) #define close closesocket #else @@ -60,6 +57,11 @@ #include #include #include +#endif + +#if defined(_WIN32) || defined(__OpenBSD__) +#define MSG_DONTWAIT 0 +#define MSG_NOSIGNAL 0 #endif #undef NDEBUG /* ensure assertions are built-in */