diff: add --detect-copies-harder as a synonym for --find-copies-harder
[gitweb.git] / compat / inet_pton.c
index 5704e0d2b6d36dfa4bc9868b1fb40dbe585e7dfe..2ec995e63d0cdef6dcd8b2fd6ea7aa544f4d1b33 100644 (file)
 
 #include <errno.h>
 #include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
+
+#include "../git-compat-util.h"
+
 #include <stdio.h>
 #include <string.h>
 
@@ -42,7 +41,9 @@
  */
 
 static int inet_pton4(const char *src, unsigned char *dst);
+#ifndef NO_IPV6
 static int inet_pton6(const char *src, unsigned char *dst);
+#endif
 
 /* int
  * inet_pton4(src, dst)