From fe9ca6ede8ee9817868ae5aac8c3f8b4480e9aea Mon Sep 17 00:00:00 2001 From: Ralf Nolden Date: Mon, 27 Jun 2016 10:25:42 +0200 Subject: NetBSD: enable detection of posix_fallocate() posix_fallocate() is declared in unistd.h on NetBSD. Add the include for proper detection on NetBSD 7.0 and up. See http://netbsd.gw.com/cgi-bin/man-cgi?posix_fallocate++NetBSD-current As that is violating the POSIX standards, a PR was opened at NetBSD under http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=51287 for further tracking of the issue. Change-Id: I40ec320677eef37bbc39f58e0bbac34f8cf7b8da Reviewed-by: Thiago Macieira --- config.tests/unix/posix_fallocate/posix_fallocate.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.tests/unix/posix_fallocate') 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 +// NetBSD 7 has posix_fallocate, but in unistd.h instead of fcntl.h +#ifdef __NetBSD__ +# include +#endif int main(int, char **) { -- cgit v1.2.3