[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/51287: posix_fallocate() needs <unistd.h> instead of <fcntl.h>
>Synopsis: posix_fallocate() needs <unistd.h> instead of <fcntl.h>
>Arrival-Date: Mon Jun 27 14:35:00 +0000 2016
>Originator: Ralf Nolden
NetBSD 7.0.1 amd64
posix_fallocate() as declared in http://pubs.opengroup.org/onlinepubs/009695399/functions/posix_fallocate.html
is supposed to require <fcntl.h> as the include, however, NetBSD uses <unistd.h> which is non-standard behavior.
The conifgure check for posix_fallocate in Qt 5 (5.6) is used to detect the support of the function for native use in the bundled sqlite code, however the check failed although the fnctl.h file was included. Investigation showed that the function is declared in the wrong include file.
move the declaration to fnctl.h to be standards-compliant
Main Index |
Thread Index |