]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
workqueue: add missing pthreads header
authorBaruch Siach <baruch@tkos.co.il>
Tue, 27 Mar 2018 02:27:28 +0000 (21:27 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 27 Mar 2018 02:27:28 +0000 (21:27 -0500)
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 <baruch@tkos.co.il>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/workqueue.h

index b4b3541701dfd3f5c002e8890d937833a06c1ba2..edb2f8ac59913cbf4f19268b9e7e60ac3e2eb489 100644 (file)
@@ -22,6 +22,8 @@
 #ifndef        _WORKQUEUE_H_
 #define        _WORKQUEUE_H_
 
+#include <pthread.h>
+
 struct workqueue;
 
 typedef void workqueue_func_t(struct workqueue *wq, uint32_t index, void *arg);