void-packages/srcpkgs/wren-cli/patches/glibc-2.34.patch

32 lines
959 B
Diff

From fcb09daf9abe0b4b7be71dd4dd966e2b0f6965da Mon Sep 17 00:00:00 2001
From: Michel Hermier <michel.hermier@gmail.com>
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.