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

SendaoYan syan at openjdk.org
Tue Oct 15 11:42:20 UTC 2024


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:

- [ ] compile `libCreationTimeHelper.c` on Alpine docker container
- [ ] compile `libCreationTimeHelper.c` on centos6 docker container
- [ ] build jdk with release/fastdebug configure on linux x86_64
- [ ] build jdk with release/fastdebug configure on linux aarch64

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

Commit messages:
 - 8342145: File libCreationTimeHelper.c compile fails on Alpine

Changes: https://git.openjdk.org/jdk/pull/21522/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21522&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8342145
  Stats: 11 lines in 1 file changed: 8 ins; 1 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/21522.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21522/head:pull/21522

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


More information about the nio-dev mailing list