summaryrefslogtreecommitdiff
path: root/src/netops.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2012-11-26 05:42:49 -0800
committerVicent Martí <vicent@github.com>2012-11-26 05:42:49 -0800
commit469827812f95e979e3c6468567b2c9ed138a9849 (patch)
tree6b67d296617cdb870daade7c13a2bc0f2b514417 /src/netops.c
parent8404f2d67f634dd4eb596c78691f8ef606d1e541 (diff)
parent9e9aee670591c54379005dbac322d7310e9ea4cf (diff)
downloadlibgit2-469827812f95e979e3c6468567b2c9ed138a9849.tar.gz
Merge pull request #1106 from frasertweedale/fix/freebsd-build
fix build on FreeBSD
Diffstat (limited to 'src/netops.c')
-rw-r--r--src/netops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/netops.c b/src/netops.c
index 422ea63f1..ccf03bebd 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>