diff options
Diffstat (limited to 'app-arch/upm/files/upm-0.85-static.patch')
-rw-r--r-- | app-arch/upm/files/upm-0.85-static.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app-arch/upm/files/upm-0.85-static.patch b/app-arch/upm/files/upm-0.85-static.patch new file mode 100644 index 000000000000..52f28f716769 --- /dev/null +++ b/app-arch/upm/files/upm-0.85-static.patch @@ -0,0 +1,30 @@ +Fix compilation issue. +Look at https://bugs.gentoo.org/264067 +Thanks to Robert Lewis +--- a/upm-0.85/upm.c 2009-04-27 22:48:39.265036979 -0400 ++++ b/upm-0.85/upm.c 2009-04-27 22:49:01.724787260 -0400 +@@ -2235,21 +2235,21 @@ + ************************************************************/ + + /* Fast way to read octals */ +-unsigned inline moct(char *s) { ++static unsigned inline moct(char *s) { + unsigned int x=0; + while (isdigit(*s)) x=x*8+*s++-'0'; + return x; + } + + /* Fast way to read ints */ +-unsigned inline mint(char *s) { ++static unsigned inline mint(char *s) { + unsigned int x=0; + while (isdigit(*s)) x=x*10+*s++-'0'; + return x; + } + + /* Fast way to read long ints */ +-unsigned long long inline mlong(char *s) { ++static unsigned long long inline mlong(char *s) { + unsigned long long x=0; + while (isdigit(*s)) x=x*10+*s++-'0'; + return x; |