summarylogtreecommitdiffstats
path: root/0001-Fix-build-on-glibc-2.34.patch
diff options
context:
space:
mode:
authorTechcable2022-07-31 21:52:20 -0700
committerTechcable2022-07-31 21:52:20 -0700
commitfcb280896f9df6d78213ae55f81cb10b9221c70d (patch)
tree6c5978fd8ced4bb2b5f930951b5e81aadd4f505f /0001-Fix-build-on-glibc-2.34.patch
parentdd9c4687c7e282ff22c34bfb0eae3af42176338d (diff)
downloadaur-fcb280896f9df6d78213ae55f81cb10b9221c70d.tar.gz
Backport patch to fix build on glibc >= 2.3
See wren-lang/wren-cli#136
Diffstat (limited to '0001-Fix-build-on-glibc-2.34.patch')
-rw-r--r--0001-Fix-build-on-glibc-2.34.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/0001-Fix-build-on-glibc-2.34.patch b/0001-Fix-build-on-glibc-2.34.patch
new file mode 100644
index 000000000000..fddfe6b8f48b
--- /dev/null
+++ b/0001-Fix-build-on-glibc-2.34.patch
@@ -0,0 +1,35 @@
+From 18553636618a4d33f10af9b5ab92da6431784a8c Mon Sep 17 00:00:00 2001
+From: Michel Hermier <michel.hermier@gmail.com>
+Date: Sat, 9 Apr 2022 02:09:23 +0200
+Subject: [PATCH] wren-cli: Fix build on glibc >= 2.34 (#136)
+
+* wren-cli: Fix build on glibc >= 2.34
+---
+ src/cli/vm.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/cli/vm.c b/src/cli/vm.c
+index 48d2b1e..cad75be 100644
+--- a/src/cli/vm.c
++++ b/src/cli/vm.c
+@@ -241,7 +241,7 @@ static WrenForeignClassMethods bindForeignClass(
+ return methods;
+ }
+
+-static void write(WrenVM* vm, const char* text)
++static void writeFn(WrenVM* vm, const char* text)
+ {
+ printf("%s", text);
+ }
+@@ -274,7 +274,7 @@ static void initVM()
+ config.bindForeignClassFn = bindForeignClass;
+ config.resolveModuleFn = resolveModule;
+ config.loadModuleFn = loadModule;
+- config.writeFn = write;
++ config.writeFn = writeFn;
+ config.errorFn = reportError;
+
+ // Since we're running in a standalone process, be generous with memory.
+--
+2.37.1
+