Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFraser Tweedale <frase@frase.id.au>2013-08-24 11:39:15 +0400
committerFraser Tweedale <frase@frase.id.au>2013-08-24 11:39:15 +0400
commit9d85f00722c5161bda0727f5bb80d13d08ccb481 (patch)
treedf553ef630fa4fb0fc7adfa025eb6ee75c503f65 /tests-clar/core
parent6890e00c0ef531e4badec3458230a390262dec6e (diff)
fix tests on FreeBSD
238b761 introduced a test for posix behaviour, but on FreeBSD some of the structs and constants used aren't defined in <arpa/inet.h>. Include the appropriate headers to get the tests working again on FreeBSD.
Diffstat (limited to 'tests-clar/core')
-rw-r--r--tests-clar/core/posix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests-clar/core/posix.c b/tests-clar/core/posix.c
index 0d9443f92..890e25d47 100644
--- a/tests-clar/core/posix.c
+++ b/tests-clar/core/posix.c
@@ -1,5 +1,7 @@
#ifndef _WIN32
# include <arpa/inet.h>
+# include <sys/socket.h>
+# include <netinet/in.h>
#else
# include <ws2tcpip.h>
# ifdef _MSC_VER