]> git.pond.sub.org Git - empserver/blobdiff - src/lib/w32/service.c
Reimplement max_idle without a separate thread
[empserver] / src / lib / w32 / service.c
index d0b6ae9688567dda1e0dda4b0ab85ac5ea282e82..20ec1d5a4d18d8749c6b31c00e93ea46e3e846aa 100644 (file)
 
 #include <config.h>
 
-#include <windows.h>
+/*
+ * For WIN32 in empthread.h, winsock2.h is included which interfers
+ * with including windows.h, use sys/socket.h instead to prevent a
+ * problem
+ */
+#include <sys/socket.h>
 
 #include "service.h"
 #include "empthread.h"