Integrated: 8342145: File libCreationTimeHelper.c compile fails on Alpine

SendaoYan syan at openjdk.org
Wed Oct 16 16:30:15 UTC 2024


On Tue, 15 Oct 2024 11:37:19 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> The file `test/jdk/java/nio/file/attribute/BasicFileAttributeView/libCreationTimeHelper.c` compile fail on Alpine. Alpine use musl as runtime libary, and musl doesn't provide header file `<bits/types.h>`. This PR delete `#include <bits/types.h>`, and add some typedef to fix Alpine compile failure.
> 
> Additional testing:
> 
> - [x] compile `libCreationTimeHelper.c` on Alpine docker container
> - [x] compile `libCreationTimeHelper.c` on centos6 docker container
> - [x] build jdk with release/fastdebug configure on linux x86_64
> - [x] build jdk with release/fastdebug configure on linux aarch64

This pull request has now been integrated.

Changeset: 44151f47
Author:    SendaoYan <syan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/44151f475fca3cf03299319b2ac9ddc533ba134d
Stats:     11 lines in 1 file changed: 8 ins; 1 del; 2 mod

8342145: File libCreationTimeHelper.c compile fails on Alpine

Reviewed-by: mbaesken

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

PR: https://git.openjdk.org/jdk/pull/21522


More information about the nio-dev mailing list