From 5517a3e7f8d256fb1e492c76041c896ecb847117 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Thu, 24 Nov 2022 22:45:53 +0100 Subject: [PATCH] wren-cli: fix build with glibc 2.34 --- srcpkgs/wren-cli/patches/glibc-2.34.patch | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 srcpkgs/wren-cli/patches/glibc-2.34.patch diff --git a/srcpkgs/wren-cli/patches/glibc-2.34.patch b/srcpkgs/wren-cli/patches/glibc-2.34.patch new file mode 100644 index 00000000000..e59ebc4d77e --- /dev/null +++ b/srcpkgs/wren-cli/patches/glibc-2.34.patch @@ -0,0 +1,31 @@ +From fcb09daf9abe0b4b7be71dd4dd966e2b0f6965da Mon Sep 17 00:00:00 2001 +From: Michel Hermier +Date: Thu, 10 Mar 2022 10:56:45 +0100 +Subject: [PATCH] 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 48d2b1ee..a11ba5a7 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 doWrite(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 = doWrite; + config.errorFn = reportError; + + // Since we're running in a standalone process, be generous with memory.