We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79f163d commit 336abc2Copy full SHA for 336abc2
core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c
@@ -2160,8 +2160,8 @@ static void convert_timestamp(
2160
struct timespec *out
2161
) {
2162
// Store sub-second remainder.
2163
-#ifndef __APPLE__
2164
- out->tv_nsec = (__syscall_slong_t)(in % 1000000000);
+#if defined(__SYSCALL_SLONG_TYPE)
+ out->tv_nsec = (__SYSCALL_SLONG_TYPE)(in % 1000000000);
2165
#else
2166
out->tv_nsec = (long)(in % 1000000000);
2167
#endif
0 commit comments