[jdk8u-dev] RFR: 8315506: C99 compatibility issue in LinuxNativeDispatcher [v2]

Florian Weimer fweimer at openjdk.org
Fri Sep 1 15:44:25 UTC 2023


> 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 from jdk11, so this bug is specific to jdk8u.
> 
> Patch originally submitted by @djdelorie as openjdk/jdk8u#42.
> 
> Related to:
> 
> * https://fedoraproject.org/wiki/Changes/PortingToModernC
> * https://fedoraproject.org/wiki/Toolchain/PortingToModernC

Florian Weimer has updated the pull request incrementally with one additional commit since the last revision:

  Trigger tests

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

Changes:
  - all: https://git.openjdk.org/jdk8u-dev/pull/362/files
  - new: https://git.openjdk.org/jdk8u-dev/pull/362/files/f5eaefe1..d089e826

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=362&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=362&range=00-01

  Stats: 0 lines in 0 files changed: 0 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk8u-dev/pull/362.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u-dev.git pull/362/head:pull/362

PR: https://git.openjdk.org/jdk8u-dev/pull/362


More information about the jdk8u-dev mailing list