From: Martin Baulig Date: Sat, 5 Dec 1998 16:25:02 +0000 (+0000) Subject: Include "popt-gnome.h" instead of "popt.h". X-Git-Tag: GNOME_COMMON_1_2_1~230 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a77785228d93e098034142fc9103e22304e30414;p=platform%2Fupstream%2Fgnome-common.git Include "popt-gnome.h" instead of "popt.h". svn path=/trunk/; revision=503 --- diff --git a/support/popthelp.c b/support/popthelp.c index 0e2f43a..618f8a2 100644 --- a/support/popthelp.c +++ b/support/popthelp.c @@ -13,6 +13,10 @@ #include #include +#ifdef HAVE_ALLOCA_H +#include +#endif + #include "popt-gnome.h" #include "poptint.h" diff --git a/support/poptparse.c b/support/poptparse.c index d083824..35eaa43 100644 --- a/support/poptparse.c +++ b/support/poptparse.c @@ -9,11 +9,14 @@ #include #include #include +#ifdef HAVE_ALLOCA_H +#include +#endif #include "popt-gnome.h" int poptParseArgvString(char * s, int * argcPtr, char *** argvPtr) { - char * buf = strcpy(alloca(strlen(s) + 1), s); + char * buf; char * bufStart = buf; char * src, * dst; char quote = '\0'; @@ -23,6 +26,7 @@ int poptParseArgvString(char * s, int * argcPtr, char *** argvPtr) { int argc = 0; int i; + buf = strcpy(alloca(strlen(s) + 1), s); src = s; dst = buf; argv[argc] = buf;