From 0ca5020ae370c9f1dc370595ed9b093e5d2f5e8b Mon Sep 17 00:00:00 2001 From: Akinori Hattori Date: Sun, 19 May 2024 17:49:20 +0900 Subject: [PATCH] dev-scheme/stklos: fix build with USE=-threads Closes: https://bugs.gentoo.org/931103 Signed-off-by: Akinori Hattori --- .../stklos/files/stklos-2.00-threads.patch | 22 +++++++++++++++++++ dev-scheme/stklos/stklos-2.00-r1.ebuild | 1 + 2 files changed, 23 insertions(+) create mode 100644 dev-scheme/stklos/files/stklos-2.00-threads.patch 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 0000000000000..0a32bc5de7d86 --- /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 + #include + #include +-#ifndef THEADS_NONE ++ ++#include "stklosconf.h" ++#include "extraconf.h" ++#ifndef THREADS_NONE + # include + # 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 9e29a396bca63..a7f5f7d4abfd4 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 )