From 233d14f4da86ee383815b870d547fcd2e39b8c53 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 4 Sep 2020 08:36:34 +0100 Subject: Hide warnings due to Apple's stupidity with __dead, reported by Kurtis Rader. --- compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compat.h') diff --git a/compat.h b/compat.h index 5b23b178..4efad6ee 100644 --- a/compat.h +++ b/compat.h @@ -35,6 +35,10 @@ #define __attribute__(a) #endif +#ifdef BROKEN___DEAD +#undef __dead +#endif + #ifndef __unused #define __unused __attribute__ ((__unused__)) #endif -- cgit From 680e7a382f9ea03568aceaf71f3fbb8ced83f76c Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 6 Oct 2020 08:18:42 +0100 Subject: glibc's malloc is very bad about returning memory from the kernel, add a call to its malloc_trim to prompt it to do so. Reported by Sarunas Valaskevicius. --- compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compat.h') diff --git a/compat.h b/compat.h index 4efad6ee..b213336f 100644 --- a/compat.h +++ b/compat.h @@ -27,6 +27,10 @@ #include #include +#ifdef HAVE_MALLOC_TRIM +#include +#endif + #ifdef HAVE_UTF8PROC #include #endif -- cgit