]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
Portability fix: conditionally include alloca.h if using alloca().
authorjorton <jorton>
Tue, 11 Jun 2002 13:11:11 +0000 (13:11 +0000)
committerjorton <jorton>
Tue, 11 Jun 2002 13:11:11 +0000 (13:11 +0000)
entry.c
grid.c
snackmodule.c

diff --git a/entry.c b/entry.c
index 14b8cdfbb818f3ffbca18e298c0ec205a4fa5f19..94c77ef5e38fbf6f78cf73827bf963206cc81318 100644 (file)
--- a/entry.c
+++ b/entry.c
@@ -1,3 +1,9 @@
+#include "config.h"
+
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
+
 #include <ctype.h>
 #include <slang.h>
 #include <stdlib.h>
diff --git a/grid.c b/grid.c
index 4330113962f29b4f6f4dd58fd02b6a7564e02b51..038b7c1721f23eb171bef9abab2464835ac5c404 100644 (file)
--- a/grid.c
+++ b/grid.c
@@ -1,4 +1,8 @@
+#include "config.h"
+
+#ifdef HAVE_ALLOCA_H
 #include <alloca.h>
+#endif
 #include <stdlib.h>
 #include <string.h>
 
index d434a5dadfbeac12fc23ac8d68774f936b75bb1d..14f07847d56e0ecbc5d4d9857bb3ff9038fa7942 100644 (file)
@@ -1,3 +1,10 @@
+
+#include "config.h"
+
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
+
 #include <errno.h>
 #include <fcntl.h>
 #include <sys/stat.h>