aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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