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

Brian Burkhalter bpb at openjdk.org
Tue Oct 15 22:39:13 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 does not break any of the platforms in our test pipeline.

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

PR Comment: https://git.openjdk.org/jdk/pull/21522#issuecomment-2415287919


More information about the nio-dev mailing list