dev-scheme/stklos: fix build with USE=-threads

Closes: https://bugs.gentoo.org/931103
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
This commit is contained in:
Akinori Hattori
2024-05-19 17:49:20 +09:00
parent 54bf5a0f4d
commit 0ca5020ae3
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
--- a/src/stklos.h
+++ b/src/stklos.h
@@ -46,15 +46,15 @@
#include <memory.h>
#include <locale.h>
#include <stdint.h>
-#ifndef THEADS_NONE
+
+#include "stklosconf.h"
+#include "extraconf.h"
+#ifndef THREADS_NONE
# include <pthread.h>
# define GC_THREADS 1
# define _REENTRANT 1
#endif
-#include "stklosconf.h"
-#include "extraconf.h"
-
/* To debug the GC uncomment the following line */
/* #define GC_DEBUG 1 */

View File

@@ -23,6 +23,7 @@ DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-ldflags.patch
"${FILESDIR}"/${P}-threads.patch
)
DOCS=( AUTHORS ChangeLog NEWS.md PACKAGES-USED {PORTING-NOTES,README}.md SUPPORTED-SRFIS )