These files use errno constants such as EACCES, while relying on
this header to be included implicitly.
If building with the latest libc++ versions, configured with
_LIBCPP_REMOVE_TRANSITIVE_INCLUDES=1 (which removes unnecessary
transitive includes from the public headers), one runs into this
error, where errno.h no longer is implicitly included through
other headers.
Prior to 762017f03c, these functions
were in separate files that explicitly did include errno.h.
Change-Id: I7b02f2ffa35b86606f6c173bf6a6d2917dbdc151
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
(cherry picked from commit 9f429468326e3d857c84276c4acb86d2e8e83279)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>