linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] workqueue: add missing pthreads header
@ 2018-03-16  5:21 Baruch Siach
  2018-03-16  5:21 ` [PATCH 2/2] xfs_scrub: add missing paths header Baruch Siach
  2018-03-16  5:30 ` [PATCH 1/2] workqueue: add missing pthreads header Darrick J. Wong
  0 siblings, 2 replies; 8+ messages in thread
From: Baruch Siach @ 2018-03-16  5:21 UTC (permalink / raw)
  To: linux-xfs; +Cc: Baruch Siach

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>
---
 include/workqueue.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/workqueue.h b/include/workqueue.h
index b4b3541701df..edb2f8ac5991 100644
--- a/include/workqueue.h
+++ b/include/workqueue.h
@@ -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);
-- 
2.16.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-03-22 23:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-16  5:21 [PATCH 1/2] workqueue: add missing pthreads header Baruch Siach
2018-03-16  5:21 ` [PATCH 2/2] xfs_scrub: add missing paths header Baruch Siach
2018-03-16  5:25   ` Darrick J. Wong
2018-03-16  5:30 ` [PATCH 1/2] workqueue: add missing pthreads header Darrick J. Wong
2018-03-16  6:08   ` Baruch Siach
2018-03-22 22:05     ` Eric Sandeen
2018-03-22 22:58       ` Eric Sandeen
2018-03-22 23:04         ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).