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

C99 compatibility issue in LinuxNativeDispatcher

XMLWordPrintable

    • b01
    • linux

      The Java_sun_nio_fs_LinuxNativeDispatcher_getlinelen function calls the free function without including <stdlib.h>. This results in an implicit function declarations, and some compilers no longer support that by default, leading to a build failure.

      Per the comment in the file, this function was introduced in the backport of JDK-8229872 from JDK 11, so this bug is specific to jdk8u.

      Related to:

        <https://fedoraproject.org/wiki/Changes/PortingToModernC>
        <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>

            fweimer Florian Weimer
            fweimer Florian Weimer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: