]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
Conditionally include alloca.h.
authorjorton <jorton>
Tue, 11 Jun 2002 13:19:28 +0000 (13:19 +0000)
committerjorton <jorton>
Tue, 11 Jun 2002 13:19:28 +0000 (13:19 +0000)
newt.c

diff --git a/newt.c b/newt.c
index 48426e4d108264acc37608494bda3213bcf7dbd4..9f6b39b2e5f54f3200d2850fd934b93d9db6f62d 100644 (file)
--- a/newt.c
+++ b/newt.c
@@ -1,3 +1,5 @@
+#include "config.h"
+
 #include <slang.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -8,6 +10,10 @@
 #include <termios.h>
 #include <unistd.h>
 
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
+
 #include "newt.h"
 #include "newt_pr.h"