NetBSD-Bugs archive

[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>

>Number:         51287
>Category:       lib
>Synopsis:       posix_fallocate() needs <unistd.h> instead of <fcntl.h>
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 27 14:35:00 +0000 2016
>Originator:     Ralf Nolden
>Release:        7.0.1
NetBSD 7.0.1 amd64
posix_fallocate() as declared in

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

Home | Main Index | Thread Index | Old Index