RFR: JDK-8312013: avoid UnixConstants.java.template warning: '__linux__' is not defined on AIX
Vyom Tewari
vtewari at openjdk.org
Thu Jul 13 11:10:00 UTC 2023
On Thu, 13 Jul 2023 09:19:42 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> We run into this build warning on AIX :
> /jdk/src/java.base/unix/classes/sun/nio/fs/UnixConstants.java.template:127:7: warning: '__linux__' is not defined, evaluates to 0 [-Wundef]
> #elif __linux__
> 1 warning generated.
>
> Looks like the preprocessor check should be adjusted, because the macro is not present on non-Linux systems.
Looks OK to me.
-------------
Marked as reviewed by vtewari (Committer).
PR Review: https://git.openjdk.org/jdk/pull/14864#pullrequestreview-1528186346
More information about the nio-dev
mailing list