summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 689feb6870..dfeba4bec1 100644
--- a/config.tests/unix/posix_fallocate/posix_fallocate.cpp
+++ b/config.tests/unix/posix_fallocate/posix_fallocate.cpp
@@ -32,6 +32,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 **)
{