diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-i18n/kcc/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-i18n/kcc/files')
-rw-r--r-- | app-i18n/kcc/files/kcc-exit.diff | 10 | ||||
-rw-r--r-- | app-i18n/kcc/files/kcc-gcc3-gentoo.diff | 47 |
2 files changed, 57 insertions, 0 deletions
diff --git a/app-i18n/kcc/files/kcc-exit.diff b/app-i18n/kcc/files/kcc-exit.diff new file mode 100644 index 000000000000..478977a88256 --- /dev/null +++ b/app-i18n/kcc/files/kcc-exit.diff @@ -0,0 +1,10 @@ +--- a/kcc.c ++++ b/kcc.c +@@ -27,6 +27,7 @@ + #endif + + #include <stdio.h> ++#include <stdlib.h> + #include <string.h> + #include <sys/types.h> + #include <sys/stat.h> diff --git a/app-i18n/kcc/files/kcc-gcc3-gentoo.diff b/app-i18n/kcc/files/kcc-gcc3-gentoo.diff new file mode 100644 index 000000000000..88f08e20161d --- /dev/null +++ b/app-i18n/kcc/files/kcc-gcc3-gentoo.diff @@ -0,0 +1,47 @@ +--- a/kcc.c ++++ b/kcc.c +@@ -134,7 +134,11 @@ + extern unsigned short hiragana[]; + unsigned short *kanatbl = katakana; + ++#ifdef __STDC__ ++void error(char *format, ...); ++#else + void error(); ++#endif + + /********************************************************************** + * * +@@ -364,14 +368,30 @@ + NAME + error - print formatted error message on stderr and die + ---------------------------------------------------------------------*/ ++#ifdef __STDC__ ++#include <stdarg.h> ++#else + #include <varargs.h> ++#endif + +-void error(va_alist) +- va_dcl ++void ++#ifdef __STDC__ ++error(char *format, ...) ++#else ++error(va_alist) va_dcl ++#endif + { + va_list args; + ++#ifdef __STDC__ ++ va_start(args, format); ++#else ++ char *format; ++ + va_start(args); ++ /* extract the fixed argument */ ++ format = va_arg(args, char *); ++#endif + fprintf(stderr, "%s: ", progname); + vfprintf(stderr, va_arg(args, char *), args); + putc('\n', stderr); |