]> Nishi Git Mirror - libw3.git/commitdiff
will work on windows support later master
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Sun, 9 Jun 2024 10:40:53 +0000 (10:40 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Sun, 9 Jun 2024 10:40:53 +0000 (10:40 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@326 d27a3e52-49c5-7645-884c-6793ebffc270

Example/httpd/httpd.c

index bbaf8e7669265698836c2c0c52399cfd53360bb9..2a17d866c51920fae5287b33787df748f849737c 100644 (file)
@@ -8,16 +8,21 @@
 #include <W3HTTP.h>
 #include <W3Util.h>
 
+#ifdef __MINGW32__
+#include <winsock2.h>
+#include <windows.h>
+#else
 #include <arpa/inet.h>
 #include <dirent.h>
 #include <netinet/in.h>
 #include <netinet/tcp.h>
+#include <sys/socket.h>
+#endif
 #include <signal.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/socket.h>
 #include <sys/stat.h>
 #include <unistd.h>