Header include tweaks
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 20 May 2010 12:17:41 +0000 (14:17 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 20 May 2010 12:17:41 +0000 (14:17 +0200)
src/sel_thread.c

index 6ce0f2a..a550472 100644 (file)
@@ -24,7 +24,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #include "sel_thread.h"
 #include <yaz/log.h>
 #include <yaz/nmem.h>
+#if HAVE_UNISTD_H
 #include <unistd.h>
+#endif
+#ifdef WIN32
+#include <winsock2.h>
+#endif
 #include <stdlib.h>
 #include <yaz/thread_create.h>
 #include <yaz/mutex.h>