diff options
author | Marcos H. Woehrmann <marcos.woehrmann@artifex.com> | 2012-03-09 15:31:50 -0800 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2012-03-15 11:54:24 +0000 |
commit | 659dc27edb496d1863679c9bdd76278fcb032d9c (patch) | |
tree | 9d4ff001ff6cc4f8834c07d0d3e043bcefa2d606 | |
parent | b43c7cd316153c02367930241a720bf3e4d61f3f (diff) |
Hack to fix memento.c build problem on Mac OS X.
-rw-r--r-- | gs/base/memento.c | 5 |
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" |