RFR: 8265018: [AIX] FileDispatcherImpl.c:31:10: fatal error: 'sys/mount.h' file not found

Alan Bateman alanb at openjdk.java.net
Sat Apr 10 06:37:24 UTC 2021


On Fri, 9 Apr 2021 21:39:53 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> #3366 introduced new includes which are not available on AIX, but they are only used on MacOS.

src/java.base/unix/native/libnio/ch/FileDispatcherImpl.c line 34:

> 32: #include <sys/mount.h>
> 33: #include <sys/param.h>
> 34: #endif

The macOS specific includes are #ifdef _ALLBSD_SOURCE in this file so we can move them there (sorry, there is inconsistency in this source files as to whether _ALLBSD_SOURCE or MACOSX is used, we need to clean this up sometimes).

-------------

PR: https://git.openjdk.java.net/jdk/pull/3424


More information about the nio-dev mailing list