summaryrefslogtreecommitdiffstats
path: root/source/modules/getdate.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/getdate.c')
-rw-r--r--source/modules/getdate.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/modules/getdate.c b/source/modules/getdate.c
index 2ce07f898ca..491c51294e9 100644
--- a/source/modules/getdate.c
+++ b/source/modules/getdate.c
@@ -120,10 +120,11 @@
the right thing about local DST. Unlike previous versions, this
version is reentrant. */
-#include <config.h>
-
-#ifdef HAVE_ALLOCA_H
-# include <alloca.h>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+# ifdef HAVE_ALLOCA_H
+# include <alloca.h>
+# endif
#endif
/* Since the code of getdate.y is not included in the Emacs executable