Commit 469827812f95e979e3c6468567b2c9ed138a9849

Vicent Martí 2012-11-26T05:42:49

Merge pull request #1106 from frasertweedale/fix/freebsd-build fix build on FreeBSD

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/netops.c b/src/netops.c
index 422ea63..ccf03be 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -18,6 +18,10 @@
 #	endif
 #endif
 
+#ifdef __FreeBSD__
+#	include <netinet/in.h>
+#endif
+
 #ifdef GIT_SSL
 # include <openssl/ssl.h>
 # include <openssl/err.h>