summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/resource.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/resource.h b/lib/resource.h
index 1a993978..1491fde7 100644
--- a/lib/resource.h
+++ b/lib/resource.h
@@ -80,6 +80,12 @@ void sl_free(slab *, void *);
#define xmalloc(size) _xmalloc_leap(__FILE__, __LINE__, size)
#define xfree(ptr) _xfree_leap(__FILE__, __LINE__, ptr)
#else
+/*
+ * Unfortunately, several libraries we might want to link to define
+ * their own xmalloc and we don't want to interfere with them, hence
+ * the renaming.
+ */
+#define xmalloc bird_xmalloc
void *xmalloc(unsigned);
#define xfree(x) free(x)
#endif