Przeglądaj źródła

lookup: fix headers for Windows

Jean-Baptiste Kempf 9 lat temu
rodzic
commit
fbcfbeb491
1 zmienionych plików z 5 dodań i 3 usunięć
  1. 5 3
      bin/lookup.c

+ 5 - 3
bin/lookup.c

@@ -33,9 +33,11 @@
 #include <string.h>
 #include <assert.h>
 
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
+#if !defined( _WIN32 )
+# include <arpa/inet.h>
+#else
+# include <winsock2.h>
+#endif
 
 #include "bdsm.h"