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.
/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.