From adf3b84fc7341864d13b99fcbecf18bbc325b1e4 Mon Sep 17 00:00:00 2001 From: Minsoo Choo Date: Mon, 28 Nov 2022 16:24:17 -0500 Subject: [PATCH] Add header According to the UNIX standard, does not include some PTHREAD_* values which are included in . OpenZFS uses some of these values in its code, and this might cause build failure on systems that do not have these PTHREAD_* values in Reviewed-by: Brian Behlendorf Reviewed-by: Richard Yao Reviewed-by: Damian Szuberski Signed-off-by: Minsoo Choo Closes #14225 --- lib/libtpool/thread_pool.c | 1 + lib/libzpool/kernel.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/libtpool/thread_pool.c b/lib/libtpool/thread_pool.c index 3eef3d1e48..7802f8c175 100644 --- a/lib/libtpool/thread_pool.c +++ b/lib/libtpool/thread_pool.c @@ -28,6 +28,7 @@ #include #include #include +#include #include "thread_pool_impl.h" static pthread_mutex_t thread_pool_lock = PTHREAD_MUTEX_INITIALIZER; diff --git a/lib/libzpool/kernel.c b/lib/libzpool/kernel.c index 77264470ba..0e3e4cee7b 100644 --- a/lib/libzpool/kernel.c +++ b/lib/libzpool/kernel.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include