Skip to content

Commit

Permalink
Fix Linux Alpine build
Browse files Browse the repository at this point in the history
  • Loading branch information
jerboaa committed Oct 13, 2023
1 parent 9fcdd96 commit aae4843
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@
// by defining binary compatible statx structs in this file and
// not relying on included headers.

#ifndef __GLIBC__
// Alpine doesn't know these types, define them
typedef unsigned int __uint32_t;
typedef unsigned short __uint16_t;
typedef unsigned _Int64 uint64_t;
typedef uint64_t __uint64_t;
#endif

/*
* Timestamp structure for the timestamps in struct statx.
*/
Expand Down

0 comments on commit aae4843

Please sign in to comment.