summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gs/base/memento.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gs/base/memento.c b/gs/base/memento.c
index 4d677cba7..22ac5e5a2 100644
--- a/gs/base/memento.c
+++ b/gs/base/memento.c
@@ -13,6 +13,7 @@
/* Inspired by Fortify by Simon P Bullen. */
+
/* Set the following if you're only looking for leaks, not memory overwrites
* to speed the operation */
#undef MEMENTO_LEAKONLY
@@ -36,7 +37,11 @@
#ifdef MEMENTO_GS_HACKS
/* For GS we include malloc_.h. Anyone else would just include memento.h */
#include "malloc_.h"
+#ifdef __MACH__
+#include <string.h>
+#else
void *memset(void *,int,size_t);
+#endif
int atexit(void (*)(void));
#else
#include "memento.h"