Integrated: JDK-8312013: avoid UnixConstants.java.template warning: '__linux__' is not defined on AIX

Matthias Baesken mbaesken at openjdk.org
Thu Jul 13 14:06:14 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.

This pull request has now been integrated.

Changeset: b587fc51
Author:    Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b587fc51a8bde2794f929b43af79fa7be00c9081
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8312013: avoid UnixConstants.java.template warning: '__linux__' is not defined on AIX

Reviewed-by: alanb, vtewari

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

PR: https://git.openjdk.org/jdk/pull/14864


More information about the nio-dev mailing list