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

Florian Weimer fweimer at openjdk.org
Mon Sep 4 10:36:50 UTC 2023


On Fri, 1 Sep 2023 10:12:18 GMT, Florian Weimer <fweimer at openjdk.org> wrote:

> 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

This pull request has now been integrated.

Changeset: 89a08b38
Author:    Florian Weimer <fweimer at openjdk.org>
Committer: Severin Gehwolf <sgehwolf at openjdk.org>
URL:       https://git.openjdk.org/jdk8u-dev/commit/89a08b389947078ae150a758c1ff9da7ba404857
Stats:     1 line in 1 file changed: 1 ins; 0 del; 0 mod

8315506: C99 compatibility issue in LinuxNativeDispatcher

Co-authored-by: DJ Delorie <dj at redhat.com>
Reviewed-by: sgehwolf, andrew

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

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


More information about the jdk8u-dev mailing list