Skip to content

Commit

Permalink
Fix compilation for platforms without pthread
Browse files Browse the repository at this point in the history
Found when compiling ruby for windows-arm64 using msys2

Missing return type for function Init_lock_native_thread
lock_native_thread.c:45:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   45 | Init_lock_native_thread(void)
      | ^
      | int
  • Loading branch information
pbo-linaro authored and nobu committed Feb 26, 2024
1 parent dddf624 commit 1ca3482
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/-test-/thread/lock_native_thread/lock_native_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Init_lock_native_thread(void)
}

#else // HAVE_PTHREAD_H
void
Init_lock_native_thread(void)
{
// do nothing
Expand Down

0 comments on commit 1ca3482

Please sign in to comment.