aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/strcompat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/strcompat.c b/main/strcompat.c
index 38643fdd5..f6e3bfa07 100644
--- a/main/strcompat.c
+++ b/main/strcompat.c
@@ -25,9 +25,12 @@
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
-#include <alloca.h>
#include <string.h>
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
+
#ifndef HAVE_STRSEP
char *strsep(char **str, const char *delims)
{