Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8312013

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • 21, 22
    • core-libs
    • None
    • b07
    • generic
    • generic

      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.

            mbaesken Matthias Baesken
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: