summaryrefslogtreecommitdiff
path: root/backend/ricoh2_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/ricoh2_buffer.c')
-rw-r--r--backend/ricoh2_buffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/ricoh2_buffer.c b/backend/ricoh2_buffer.c
index b8d7d90..e79a7f3 100644
--- a/backend/ricoh2_buffer.c
+++ b/backend/ricoh2_buffer.c
@@ -46,7 +46,12 @@
#include <memory.h>
#include <assert.h>
+
+#if defined(__APPLE__) && defined(__MACH__)
+#include <malloc/malloc.h>
+#else
#include <malloc.h>
+#endif
#include "../include/sane/sanei_debug.h"