# HG changeset patch # User Daniel Atallah # Date 1267074542 0 # Node ID 3015b7c2bec3abfa1369437e9acd20aa6439f707 # Parent 2071b92780e5c91023fdb5985f818267d36c59bb incomplete win32 fixes diff -r 2071b92780e5 -r 3015b7c2bec3 libpurple/example/nullclient.c --- a/libpurple/example/nullclient.c Thu Feb 25 04:45:28 2010 +0000 +++ b/libpurple/example/nullclient.c Thu Feb 25 05:09:02 2010 +0000 @@ -27,7 +27,11 @@ #include #include +#ifndef _WIN32 #include +#else +#include "win32/win32dep.h" +#endif #include "defines.h" @@ -80,7 +84,11 @@ if (condition & PURPLE_INPUT_WRITE) cond |= PURPLE_GLIB_WRITE_COND; +#if defined _WIN32 && !defined WINPIDGIN_USE_GLIB_IO_CHANNEL + channel = wpurple_g_io_channel_win32_new_socket(fd); +#else channel = g_io_channel_unix_new(fd); +#endif closure->result = g_io_add_watch_full(channel, G_PRIORITY_DEFAULT, cond, purple_glib_io_invoke, closure, purple_glib_io_destroy); @@ -253,12 +261,14 @@ PurpleSavedStatus *status; char *res; +#ifndef _WIN32 /* libpurple's built-in DNS resolution forks processes to perform * blocking lookups without blocking the main process. It does not * handle SIGCHLD itself, so if the UI does not you quickly get an army * of zombie subprocesses marching around. */ signal(SIGCHLD, SIG_IGN); +#endif init_libpurple();