aboutsummaryrefslogtreecommitdiff
path: root/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index 5b23b178..b213336f 100644
--- a/compat.h
+++ b/compat.h
@@ -27,6 +27,10 @@
#include <termios.h>
#include <wchar.h>
+#ifdef HAVE_MALLOC_TRIM
+#include <malloc.h>
+#endif
+
#ifdef HAVE_UTF8PROC
#include <utf8proc.h>
#endif
@@ -35,6 +39,10 @@
#define __attribute__(a)
#endif
+#ifdef BROKEN___DEAD
+#undef __dead
+#endif
+
#ifndef __unused
#define __unused __attribute__ ((__unused__))
#endif