summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFilippo Della Betta <filippo.dellabetta@telecomitalia.it>2012-03-05 18:04:12 +0100
committerYouness Alaoui <youness.alaoui@collabora.co.uk>2012-03-05 21:01:22 -0500
commit476500db4a9e2fdf4d0ac2127ef257a352c64b86 (patch)
tree20ddab5b645febc9def0006880216ecd3e88142a /tests
parent3ccd8370149a0fd6df8acc2fd4c84c30604c2f59 (diff)
downloadlibnice-476500db4a9e2fdf4d0ac2127ef257a352c64b86.tar.gz
Fixed mingw/msys compilation. Definition for intptr_t was missing. Added WSAStartup/WSACleanup on win32
Diffstat (limited to 'tests')
-rw-r--r--tests/test-fallback.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test-fallback.c b/tests/test-fallback.c
index 990d380..163f470 100644
--- a/tests/test-fallback.c
+++ b/tests/test-fallback.c
@@ -44,6 +44,7 @@
#include <stdlib.h>
#include <string.h>
+#include <io.h>
static NiceComponentState global_lagent_state = NICE_COMPONENT_STATE_LAST;
@@ -483,6 +484,11 @@ int main (void)
guint timer_id;
const char *stun_server = NULL, *stun_server_port = NULL;
+#ifdef G_OS_WIN32
+ WSADATA w;
+
+ WSAStartup(0x0202, &w);
+#endif
g_type_init ();
#if !GLIB_CHECK_VERSION(2,31,8)
g_thread_init (NULL);
@@ -563,6 +569,8 @@ int main (void)
global_mainloop = NULL;
g_source_remove (timer_id);
-
+#ifdef G_OS_WIN32
+ WSACleanup();
+#endif
return result;
}