summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/parsedate.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/parsedate.y b/ext/standard/parsedate.y
index 6552c517a2..513ac73ea6 100644
--- a/ext/standard/parsedate.y
+++ b/ext/standard/parsedate.y
@@ -28,6 +28,10 @@
#include <malloc.h>
#endif
+#ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <time.h>