summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2024-05-19 17:49:20 +0900
committerAkinori Hattori <hattya@gentoo.org>2024-05-19 17:49:20 +0900
commit0ca5020ae370c9f1dc370595ed9b093e5d2f5e8b (patch)
tree3c0b49dfab8d9b7abc509042b10352bce0cd0b08 /dev-scheme
parentapp-shells/nushell: make X11 optional (diff)
downloadgentoo-0ca5020ae370c9f1dc370595ed9b093e5d2f5e8b.tar.gz
gentoo-0ca5020ae370c9f1dc370595ed9b093e5d2f5e8b.tar.bz2
gentoo-0ca5020ae370c9f1dc370595ed9b093e5d2f5e8b.zip
dev-scheme/stklos: fix build with USE=-threads
Closes: https://bugs.gentoo.org/931103 Signed-off-by: Akinori Hattori <hattya@gentoo.org>
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/stklos/files/stklos-2.00-threads.patch22
-rw-r--r--dev-scheme/stklos/stklos-2.00-r1.ebuild1
2 files changed, 23 insertions, 0 deletions
diff --git a/dev-scheme/stklos/files/stklos-2.00-threads.patch b/dev-scheme/stklos/files/stklos-2.00-threads.patch
new file mode 100644
index 000000000000..0a32bc5de7d8
--- /dev/null
+++ b/dev-scheme/stklos/files/stklos-2.00-threads.patch
@@ -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 */
+
diff --git a/dev-scheme/stklos/stklos-2.00-r1.ebuild b/dev-scheme/stklos/stklos-2.00-r1.ebuild
index 9e29a396bca6..a7f5f7d4abfd 100644
--- a/dev-scheme/stklos/stklos-2.00-r1.ebuild
+++ b/dev-scheme/stklos/stklos-2.00-r1.ebuild
@@ -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 )