diff options
author | Fraser Tweedale <frase@frase.id.au> | 2013-08-24 11:39:15 +0400 |
---|---|---|
committer | Fraser Tweedale <frase@frase.id.au> | 2013-08-24 11:39:15 +0400 |
commit | 9d85f00722c5161bda0727f5bb80d13d08ccb481 (patch) | |
tree | df553ef630fa4fb0fc7adfa025eb6ee75c503f65 /tests-clar/core | |
parent | 6890e00c0ef531e4badec3458230a390262dec6e (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.c | 2 |
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 |