summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/popt/system.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/popt/system.h b/lib/popt/system.h
index 1d1b9dae88..bbb4f6cc26 100644
--- a/lib/popt/system.h
+++ b/lib/popt/system.h
@@ -58,6 +58,8 @@ char *alloca ();
# endif
#elif defined(__GNUC__) && defined(__STRICT_ANSI__)
#define alloca __builtin_alloca
+#elif defined(__GNUC__) && defined(HAVE_ALLOCA_H)
+# include <alloca.h>
#endif
/*@-redecl -redef@*/