From: jorton Date: Tue, 11 Jun 2002 13:11:11 +0000 (+0000) Subject: Portability fix: conditionally include alloca.h if using alloca(). X-Git-Tag: r0-50-36~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d638bf4593e5549028e67db9cdef38d4e9b55680;p=thirdparty%2Fnewt.git Portability fix: conditionally include alloca.h if using alloca(). --- diff --git a/entry.c b/entry.c index 14b8cdf..94c77ef 100644 --- a/entry.c +++ b/entry.c @@ -1,3 +1,9 @@ +#include "config.h" + +#ifdef HAVE_ALLOCA_H +#include +#endif + #include #include #include diff --git a/grid.c b/grid.c index 4330113..038b7c1 100644 --- a/grid.c +++ b/grid.c @@ -1,4 +1,8 @@ +#include "config.h" + +#ifdef HAVE_ALLOCA_H #include +#endif #include #include diff --git a/snackmodule.c b/snackmodule.c index d434a5d..14f0784 100644 --- a/snackmodule.c +++ b/snackmodule.c @@ -1,3 +1,10 @@ + +#include "config.h" + +#ifdef HAVE_ALLOCA_H +#include +#endif + #include #include #include