aboutsummaryrefslogtreecommitdiff
path: root/lib/getdate.y
diff options
context:
space:
mode:
Diffstat (limited to 'lib/getdate.y')
-rw-r--r--lib/getdate.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index d60be3cf0..6ae7eff32 100644
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -25,7 +25,12 @@
# undef static
#endif
+#ifdef __APPLE__
+#include <sys/types.h>
+#include <sys/malloc.h>
+#else
#include <malloc.h>
+#endif
#include <string.h>
#include <stdio.h>
#include <ctype.h>