diff -Nurw gcin-1.6.5~pre3.orig/im-dispatch.cpp gcin-1.6.5~pre3/im-dispatch.cpp
--- gcin-1.6.5~pre3.orig/im-dispatch.cpp	2011-03-24 10:56:40.000000000 +0800
+++ gcin-1.6.5~pre3/im-dispatch.cpp	2011-08-25 14:18:08.159274669 +0800
@@ -156,7 +156,11 @@
 
   free(gcin_clients[idx].cs);
   gcin_clients[idx].cs = NULL;
+#if UNIX
+  gcin_clients[idx].fd = 0;
+#else
   gcin_clients[idx].fd = NULL;
+#endif
 
 #if UNIX
   int uid = getuid();
