#ifdef G_OS_WIN32
#include <fcntl.h> /* For _O_BINARY used by pipe() macro */
+#include <io.h> /* for _pipe() */
#endif
#define ITERS 10000
GIOChannel **channels = data;
AddrData addr_data;
- context = g_main_context_get (g_thread_self());
+ context = g_main_context_new ();
g_mutex_lock (context_array_mutex);