summaryrefslogtreecommitdiffstats
path: root/config.tests/unix/posix_fallocate
diff options
context:
space:
mode:
Diffstat (limited to 'config.tests/unix/posix_fallocate')
-rw-r--r--config.tests/unix/posix_fallocate/posix_fallocate.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.tests/unix/posix_fallocate/posix_fallocate.cpp b/config.tests/unix/posix_fallocate/posix_fallocate.cpp
index dd39eec7b9..ce1286813a 100644
--- a/config.tests/unix/posix_fallocate/posix_fallocate.cpp
+++ b/config.tests/unix/posix_fallocate/posix_fallocate.cpp
@@ -38,6 +38,10 @@
****************************************************************************/
#include <fcntl.h>
+// NetBSD 7 has posix_fallocate, but in unistd.h instead of fcntl.h
+#ifdef __NetBSD__
+# include <unistd.h>
+#endif
int main(int, char **)
{