Merge pull request #5628 from interkosmos/master Fixed includes for FreeBSD
diff --git a/tests/clar/fs.h b/tests/clar/fs.h
index 87d3451..31a5364 100644
--- a/tests/clar/fs.h
+++ b/tests/clar/fs.h
@@ -273,7 +273,7 @@ cl_fs_cleanup(void)
# include <sys/sendfile.h>
#endif
-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__)
# include <copyfile.h>
#endif
@@ -356,7 +356,7 @@ fs_copyfile_helper(const char *source, size_t source_len, const char *dest, int
cl_must_pass((in = open(source, O_RDONLY)));
cl_must_pass((out = open(dest, O_WRONLY|O_CREAT|O_TRUNC, dest_mode)));
-#if USE_FCOPYFILE && (defined(__APPLE__) || defined(__FreeBSD__))
+#if USE_FCOPYFILE && defined(__APPLE__)
((void)(source_len)); /* unused */
cl_must_pass(fcopyfile(in, out, 0, COPYFILE_DATA));
#elif USE_SENDFILE && defined(__linux__)