diff options
author | ewt <devnull@localhost> | 1996-12-12 03:32:22 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1996-12-12 03:32:22 +0000 |
commit | 329e94d98e96cb0f5a64b87e0ad5108dd7c50f3e (patch) | |
tree | b47380f85803c1862c19133e90b676ea868e8b3f | |
parent | a255e37e2f377f50a1f7b883fed193fa36f453c6 (diff) | |
download | librpm-tizen-329e94d98e96cb0f5a64b87e0ad5108dd7c50f3e.tar.gz librpm-tizen-329e94d98e96cb0f5a64b87e0ad5108dd7c50f3e.tar.bz2 librpm-tizen-329e94d98e96cb0f5a64b87e0ad5108dd7c50f3e.zip |
made include of alloca.h conditional
CVS patchset: 1227
CVS date: 1996/12/12 03:32:22
-rw-r--r-- | install.c | 5 | ||||
-rw-r--r-- | lib/rebuilddb.c | 5 | ||||
-rw-r--r-- | query.c | 5 | ||||
-rwxr-xr-x | rpm.c | 2 | ||||
-rw-r--r-- | url.c | 5 |
5 files changed, 17 insertions, 5 deletions
@@ -1,10 +1,13 @@ -#include <alloca.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> +#ifdef HAVE_ALLOCA_H +# include <alloca.h> +#endif + #include "install.h" #include "lib/rpmlib.h" #include "messages.h" diff --git a/lib/rebuilddb.c b/lib/rebuilddb.c index 933e66123..ab0892ef4 100644 --- a/lib/rebuilddb.c +++ b/lib/rebuilddb.c @@ -1,10 +1,13 @@ -#include <alloca.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <sys/stat.h> /* for mkdir(2) !?! */ #include <unistd.h> +#ifndef HAVE_ALLOCA_H +#include <alloca.h> +#endif + #include "messages.h" #include "rpmdb.h" #include "rpmlib.h" @@ -1,4 +1,3 @@ -#include <alloca.h> #include <ctype.h> #include <errno.h> #include <fcntl.h> @@ -10,6 +9,10 @@ #include <sys/param.h> #include <unistd.h> +#ifdef HAVE_ALLOCA_H +# include <alloca.h> +#endif + #include "lib/messages.h" #include "rpmlib.h" #include "query.h" @@ -1,5 +1,4 @@ #include <getopt.h> -#include <libintl.h> #include <locale.h> #include <stdio.h> #include <stdlib.h> @@ -8,6 +7,7 @@ #include <sys/stat.h> #include "install.h" +#include "intl.h" #include "lib/messages.h" #include "lib/signature.h" #include "query.h" @@ -1,4 +1,3 @@ -#include <alloca.h> #include <fcntl.h> #include <pwd.h> #include <string.h> @@ -6,6 +5,10 @@ #include <stdlib.h> #include <unistd.h> +#ifdef HAVE_ALLOCA_H +# include <alloca.h> +#endif + #include "ftp.h" #include "messages.h" #include "rpmlib.h" |