Skip to content

Commit e5c241c

Browse files
authored
[Memory64] Made clock_t 64-bit compatible (#15500)
1 parent ec42ea2 commit e5c241c

File tree

1 file changed

+1
-1
lines changed
  • system/lib/libc/musl/arch/emscripten/bits

1 file changed

+1
-1
lines changed

system/lib/libc/musl/arch/emscripten/bits/alltypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ typedef int clockid_t;
294294
#endif
295295

296296
#if defined(__NEED_clock_t) && !defined(__DEFINED_clock_t)
297-
typedef long clock_t;
297+
typedef int clock_t; /* XXX EMSCRIPTEN: ensure it's always 32-bits even in wasm64 */
298298
#define __DEFINED_clock_t
299299
#endif
300300

0 commit comments

Comments
 (0)