Merge pull request #1106 from frasertweedale/fix/freebsd-build fix build on FreeBSD
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>