dev-cpp/clucene: fix build on musl

Closes: https://bugs.gentoo.org/855071
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-07-14 05:36:32 +01:00
parent 532cb832d9
commit 05c237dd1d
2 changed files with 12 additions and 0 deletions
@@ -34,6 +34,7 @@ PATCHES=(
"${FILESDIR}/${P}-pkgconfig.patch"
"${FILESDIR}/${P}-gcc6.patch"
"${FILESDIR}/${P}-gmtime.patch"
"${FILESDIR}/${P}-musl-pthread.patch"
)
src_prepare() {
@@ -0,0 +1,11 @@
https://bugs.gentoo.org/855071
--- a/src/shared/CLucene/LuceneThreads.h
+++ b/src/shared/CLucene/LuceneThreads.h
@@ -7,6 +7,7 @@
#ifndef _LuceneThreads_h
#define _LuceneThreads_h
+#include <pthread.h>
CL_NS_DEF(util)
class CLuceneThreadIdCompare;