aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-08-14 02:30:50 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-08-14 02:30:50 +0000
commit4c34104a8fb52d339b9f43f9b851e65698998408 (patch)
tree60731aaf956347df502037afaff818e3e688e139
parent7f3db32b046615702472e60c1fb38b28b4c93294 (diff)
added #ifdef __APPLE__ around malloc.h to make compile on MacOS X
svn path=/trunk/externals/unauthorized/; revision=1953
-rw-r--r--cooled~/cooled~.c6
-rw-r--r--sonogram~/sonogram~.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/cooled~/cooled~.c b/cooled~/cooled~.c
index 1e67ad3..68e2b8e 100644
--- a/cooled~/cooled~.c
+++ b/cooled~/cooled~.c
@@ -36,7 +36,13 @@
#include <stdlib.h>
#include <fcntl.h>
#include <sys/stat.h>
+
+#ifdef __APPLE__
+#include <sys/malloc.h>
+#else
#include <malloc.h>
+#endif
+
#include <ctype.h>
#include <pthread.h>
#ifdef UNIX
diff --git a/sonogram~/sonogram~.c b/sonogram~/sonogram~.c
index 7a41da7..24a38a9 100644
--- a/sonogram~/sonogram~.c
+++ b/sonogram~/sonogram~.c
@@ -37,7 +37,13 @@
#include <stdlib.h>
#include <fcntl.h>
#include <sys/stat.h>
+
+#ifdef __APPLE__
+#include <sys/malloc.h>
+#else
#include <malloc.h>
+#endif
+
#include <ctype.h>
#include <pthread.h>
#ifdef UNIX