fixed WIN32 compatibility (use old connect function without IPv6 and bind support)
[NeonServV5.git] / src / cmd_neonserv_extscript.c
index 67374d15668560da89f828ff930925c1f8ac990c..8c31bb29d5f258dc57a21ae35e6c097895f54f3d 100644 (file)
@@ -134,7 +134,9 @@ CMD_BIND(neonserv_cmd_extscript) {
     cache->chan = chan;
     cache->answere_channel = answere_channel;
     cache->pipe = popen(command, "r");
+    #ifndef WIN32
     fcntl(fileno(cache->pipe), F_SETFL, O_NONBLOCK);
+    #endif
     timeq_add(1, neonserv_cmd_extscript_callback, cache);
 }