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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: