Commit e937a2aa6524ae38cb7d5847f0ad7d16ff558fbe

Philipp 2020-09-09T19:08:20

Fixed includes for FreeBSD.

diff --git a/tests/clar/fs.h b/tests/clar/fs.h
index 87d3451..cdd8b15 100644
--- a/tests/clar/fs.h
+++ b/tests/clar/fs.h
@@ -273,10 +273,16 @@ cl_fs_cleanup(void)
 # include <sys/sendfile.h>
 #endif
 
-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__)
 # include <copyfile.h>
 #endif
 
+#if defined(__FreeBSD__)
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/uio.h>
+#endif
+
 static void basename_r(const char **out, int *out_len, const char *in)
 {
 	size_t in_len = strlen(in), start_pos;