From 24e418344e8298fa48edcee409096bcd94624331 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 13 Jan 2024 13:19:08 +0000 Subject: [PATCH] Make malloc_usable_size() go away with CFLAGS. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4766 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- GNUmakefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 38ae196c..8ad2b893 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -522,6 +522,12 @@ $(QUICKJS_OBJS): CFLAGS += \ -Wno-unused-variable $(NONANDROID_TARGETS): CFLAGS += -DDUMP_LEAKS +ifeq ($(UNAME_S),Haiku) +$(QUICKJS_OBJS): CFLAGS += "-Dmalloc_usable_size(x)=0" +else ifeq ($(UNAME_S),OpenBSD) +$(QUICKJS_OBJS): CFLAGS += "-Dmalloc_usable_size(x)=0" +endif + LIBBACKTRACE_SOURCES := \ deps/libbacktrace/atomic.c \ deps/libbacktrace/backtrace.c \