mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
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:
22
dev-scheme/stklos/files/stklos-2.00-threads.patch
Normal file
22
dev-scheme/stklos/files/stklos-2.00-threads.patch
Normal 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 */
|
||||
|
||||
@@ -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 )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user