diff options
author | Fraser Tweedale <frase@frase.id.au> | 2012-11-26 23:29:34 +1000 |
---|---|---|
committer | Fraser Tweedale <frase@frase.id.au> | 2012-11-26 23:29:34 +1000 |
commit | 9e9aee670591c54379005dbac322d7310e9ea4cf (patch) | |
tree | 6b67d296617cdb870daade7c13a2bc0f2b514417 /src/netops.c | |
parent | 8404f2d67f634dd4eb596c78691f8ef606d1e541 (diff) | |
download | libgit2-9e9aee670591c54379005dbac322d7310e9ea4cf.tar.gz |
fix build on FreeBSD
3f9eb1e introduced support for SSL certificates issued for IP
addresses, making use of in_addr and in_addr6 structs. On FreeBSD
these are defined in (a file included in) <netinet/in.h>, so include
that file on FreeBSD and get the build working again.
Diffstat (limited to 'src/netops.c')
-rw-r--r-- | src/netops.c | 4 |
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> |