diff options
author | Ralf Nolden <nolden@kde.org> | 2016-06-27 10:25:42 +0200 |
---|---|---|
committer | Ralf Nolden <nolden@kde.org> | 2016-06-28 05:49:24 +0000 |
commit | fe9ca6ede8ee9817868ae5aac8c3f8b4480e9aea (patch) | |
tree | e1088a8dbd7d295e987c523573caaecc407caa49 /config.tests/unix | |
parent | b3b2f502e9b499814a1e3b21e1b572e3ff1ba37b (diff) |
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 <thiago.macieira@intel.com>
Diffstat (limited to 'config.tests/unix')
-rw-r--r-- | config.tests/unix/posix_fallocate/posix_fallocate.cpp | 4 |
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 **) { |