diff options
author | Brian Naylor <bnaylor@netapp.com> | 2017-05-24 11:38:49 -0400 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-05-24 09:58:45 -0700 |
commit | cc96e8d783fb7db21430e36172ab98ad70f9927d (patch) | |
tree | 237d1fff2b5ec130a7c1d46d54933e42f511a907 /test | |
parent | 4f8f034a8969a48f210bf00be78a67cfb6964c72 (diff) |
Make tests build on bsd
Diffstat (limited to 'test')
-rw-r--r-- | test/test_setattr.c | 5 | ||||
-rw-r--r-- | test/test_write_cache.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/test_setattr.c b/test/test_setattr.c index 1eef66a..017b5e2 100644 --- a/test/test_setattr.c +++ b/test/test_setattr.c @@ -20,7 +20,12 @@ #include <stddef.h> #include <unistd.h> #include <pthread.h> + +#ifndef __linux__ +#include <limits.h> +#else #include <linux/limits.h> +#endif #define FILE_INO 2 #define FILE_NAME "truncate_me" diff --git a/test/test_write_cache.c b/test/test_write_cache.c index fa80327..a5fafd7 100644 --- a/test/test_write_cache.c +++ b/test/test_write_cache.c @@ -20,7 +20,12 @@ #include <stddef.h> #include <unistd.h> #include <pthread.h> + +#ifndef __linux__ +#include <limits.h> +#else #include <linux/limits.h> +#endif #define FILE_INO 2 #define FILE_NAME "write_me" |