diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-04-22 02:14:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-04-22 02:14:08 +0000 |
commit | 4af5947160493bc8ec355dee38e4858d654b1271 (patch) | |
tree | 6a9999ab380c38514273a0703dd76460a933f921 /app-misc/glimpse/files | |
parent | Fixed error message in apachesplitlogfiles. Closes #48499. (Manifest recommit) (diff) | |
download | gentoo-2-4af5947160493bc8ec355dee38e4858d654b1271.tar.gz gentoo-2-4af5947160493bc8ec355dee38e4858d654b1271.tar.bz2 gentoo-2-4af5947160493bc8ec355dee38e4858d654b1271.zip |
gcc-3.x patch #42970 and clean up CFLAGS
Diffstat (limited to 'app-misc/glimpse/files')
-rw-r--r-- | app-misc/glimpse/files/4.17.4-gcc3.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/app-misc/glimpse/files/4.17.4-gcc3.patch b/app-misc/glimpse/files/4.17.4-gcc3.patch new file mode 100644 index 000000000000..6ed6c292eba6 --- /dev/null +++ b/app-misc/glimpse/files/4.17.4-gcc3.patch @@ -0,0 +1,58 @@ +diff -Naur glimpse-4.17.4-old/libtemplate/include/util.h glimpse-4.17.4/libtemplate/include/util.h +--- glimpse-4.17.4-old/libtemplate/include/util.h 1999-11-03 16:40:57.000000000 -0500 ++++ glimpse-4.17.4/libtemplate/include/util.h 2004-03-01 19:07:06.438665221 -0500 +@@ -93,9 +93,14 @@ + void init_log3 _PARAMS((char *,FILE *,FILE *)); /* Initialize log routines */ + void log_errno _PARAMS((char *)); /* Same as perror(3) */ + void fatal_errno _PARAMS((char *)); /* Same as perror(3) & exit */ +-#ifdef __STRICT_ANSI__ ++#if defined(__STRICT_ANSI__) || (defined(__GNUC__) && __GNUC__ >= 3) + #include <stdarg.h> ++# if defined(__GNUC__) ++#define log xlog ++void xlog _PARAMS((char *, ...)); /* Log a message */ ++# else + void log _PARAMS((char *, ...)); /* Log a message */ ++# endif + void errorlog _PARAMS((char *, ...)); /* Log an error message */ + void fatal _PARAMS((char *, ...)); /* Log error msg and exit */ + #else +diff -Naur glimpse-4.17.4-old/libtemplate/util/log.c glimpse-4.17.4/libtemplate/util/log.c +--- glimpse-4.17.4-old/libtemplate/util/log.c 1999-11-03 15:42:14.000000000 -0500 ++++ glimpse-4.17.4/libtemplate/util/log.c 2004-03-01 19:07:13.934576926 -0500 +@@ -55,7 +55,7 @@ + #include <errno.h> + #include <time.h> + #include <sys/file.h> +-#if defined(__STRICT_ANSI__) ++#if defined(__STRICT_ANSI__) || (defined(__GNUC__) && __GNUC__ >= 3) + #include <stdarg.h> + #else + #include <varargs.h> +@@ -119,7 +119,7 @@ + /* + * log() - used like printf(3). Prints message to stdout. + */ +-#if defined(__STRICT_ANSI__) ++#if defined(__STRICT_ANSI__) || (defined(__GNUC__) && __GNUC__ >= 3) + void log(char *fmt,...) + { + va_list ap; +@@ -155,7 +155,7 @@ + /* + * errorlog() - used like printf(3). Prints error message to stderr. + */ +-#if defined(__STRICT_ANSI__) ++#if defined(__STRICT_ANSI__) || (defined(__GNUC__) && __GNUC__ >= 3) + void errorlog(char *fmt,...) + { + va_list ap; +@@ -193,7 +193,7 @@ + /* + * fatal() - used like printf(3). Prints error message to stderr and exits + */ +-#if defined(__STRICT_ANSI__) ++#if defined(__STRICT_ANSI__) || (defined(__GNUC__) && __GNUC__ >= 3) + void fatal(char *fmt,...) + { + va_list ap; |