diff options
| author | Philipp <pengel@hs-nb.de> | 2020-09-09 19:08:20 +0200 |
|---|---|---|
| committer | Philipp <pengel@hs-nb.de> | 2020-09-09 19:08:20 +0200 |
| commit | e937a2aa6524ae38cb7d5847f0ad7d16ff558fbe (patch) | |
| tree | 028ead6db4bb7c65455c382b457e4acb5335533d /tests | |
| parent | 1e987525b3bd86fc29e7ff67d973861efd22faf7 (diff) | |
| download | libgit2-e937a2aa6524ae38cb7d5847f0ad7d16ff558fbe.tar.gz | |
Fixed includes for FreeBSD.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/clar/fs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/clar/fs.h b/tests/clar/fs.h index 87d345132..cdd8b15f3 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; |
