Merge pull request #1807 from frasertweedale/fix/freebsd fix tests on FreeBSD
diff --git a/tests-clar/core/posix.c b/tests-clar/core/posix.c
index 0d9443f..890e25d 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