From: Baruch Siach Date: Tue, 27 Mar 2018 02:27:28 +0000 (-0500) Subject: workqueue: add missing pthreads header X-Git-Tag: v4.16.0-rc1~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40b2e29848f10ee2e99c8aa982e7574a58c43d94;p=thirdparty%2Fxfsprogs-dev.git workqueue: add missing pthreads header Fix the following build failure with musl libc: In file included from read_verify.c:25:0: ../include/workqueue.h:39:2: error: unknown type name 'pthread_t' pthread_t *threads; ^~~~~~~~~ ../include/workqueue.h:42:2: error: unknown type name 'pthread_mutex_t' pthread_mutex_t lock; ^~~~~~~~~~~~~~~ ../include/workqueue.h:43:2: error: unknown type name 'pthread_cond_t' pthread_cond_t wakeup; ^~~~~~~~~~~~~~ Signed-off-by: Baruch Siach Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/include/workqueue.h b/include/workqueue.h index b4b354170..edb2f8ac5 100644 --- a/include/workqueue.h +++ b/include/workqueue.h @@ -22,6 +22,8 @@ #ifndef _WORKQUEUE_H_ #define _WORKQUEUE_H_ +#include + struct workqueue; typedef void workqueue_func_t(struct workqueue *wq, uint32_t index, void *arg);