]> git.meshlink.io Git - catta/blobdiff - include/catta/watch.h
moved back windows compat headers and fixed catta headers to stop clutter dependent...
[catta] / include / catta / watch.h
index 7824724ba0826b8aa2068344f5020464f7c75dfe..a0c6389c5d3def031c7c32e5c50cbcd378c00c2c 100644 (file)
 
 /** \file watch.h Simplistic main loop abstraction */
 
-#include <sys/poll.h>
-#ifndef _MSC_VER
-#include <sys/time.h>
+#ifdef _WIN32
+    #include <winsock2.h> // POLLIN
+#else
+    #include <sys/poll.h>
+    #include <sys/time.h>
 #endif
 
 #include <catta/cdecl.h>