Browse Source

trying to make things work better on MINGW out of the box

Christian Grothoff 15 years ago
parent
commit
a9438fbc33
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/include/microhttpd.h

+ 4 - 0
src/include/microhttpd.h

@@ -94,10 +94,14 @@ extern "C"
 #include <unistd.h>
 #include <stdarg.h>
 #include <stdint.h>
+#ifdef __MINGW32__
+#include <ws2tcpip.h>
+#else
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #endif
+#endif
 
 /**
  * Current version of the library.