RFR: JDK-8312013: avoid UnixConstants.java.template warning: '__linux__' is not defined on AIX
Alan Bateman
alanb at openjdk.org
Thu Jul 13 10:03:55 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 okay, must have slipped in at some point. Can you update the date on copyright header before integrating?
-------------
Marked as reviewed by alanb (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/14864#pullrequestreview-1528079372
More information about the nio-dev
mailing list