Commit 66798ad0d8e30821c0ac26a6c602e2e2cf0b2fff

Carlos Martín Nieto 2012-06-06T11:00:15

Don't include arpa/inet.h on Windows

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/netops.c b/src/netops.c
index 705c1d4..b12750b 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -10,6 +10,7 @@
 #	include <sys/select.h>
 #	include <sys/time.h>
 #	include <netdb.h>
+#       include <arpa/inet.h>
 #else
 #	include <winsock2.h>
 #	include <ws2tcpip.h>
@@ -24,7 +25,6 @@
 #endif
 
 #include <ctype.h>
-#include <arpa/inet.h>
 #include "git2/errors.h"
 
 #include "common.h"