From 51022b8e06ae81daa8a84a1122f329119ed95d31 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 7 Sep 2022 00:04:28 +0900 Subject: [PATCH] Exit status macros need sys/wait.h on FreeBSD --- thread.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/thread.c b/thread.c index c42c79914d..e50b2ce6ca 100644 --- a/thread.c +++ b/thread.c @@ -100,6 +100,10 @@ #include "vm_debug.h" #include "vm_sync.h" +#if USE_MJIT && defined(HAVE_SYS_WAIT_H) +#include +#endif + #ifndef USE_NATIVE_THREAD_PRIORITY #define USE_NATIVE_THREAD_PRIORITY 0 #define RUBY_THREAD_PRIORITY_MAX 3