diff options
author | Pacho Ramos <pacho@gentoo.org> | 2017-11-28 20:41:42 +0100 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2017-11-28 20:46:20 +0100 |
commit | d3e32d54d4408da857911c2b0e14ac2c86d31a18 (patch) | |
tree | 9e9d827ae9c86858ce4296644efe60e09a926637 /app-mobilephone/gnokii/files | |
parent | net-dialup/mgetty: Fix building with gcc7 (#639076 by Toralf Förster) (diff) | |
download | gentoo-d3e32d54d4408da857911c2b0e14ac2c86d31a18.tar.gz gentoo-d3e32d54d4408da857911c2b0e14ac2c86d31a18.tar.bz2 gentoo-d3e32d54d4408da857911c2b0e14ac2c86d31a18.zip |
app-mobilephone/gnokii: Fix building with gcc7 (#639078 by Toralf Förster)
Package-Manager: Portage-2.3.14, Repoman-2.3.6
Diffstat (limited to 'app-mobilephone/gnokii/files')
-rw-r--r-- | app-mobilephone/gnokii/files/gnokii-0.6.31-gcc7.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app-mobilephone/gnokii/files/gnokii-0.6.31-gcc7.patch b/app-mobilephone/gnokii/files/gnokii-0.6.31-gcc7.patch new file mode 100644 index 000000000000..6637a6af62c4 --- /dev/null +++ b/app-mobilephone/gnokii/files/gnokii-0.6.31-gcc7.patch @@ -0,0 +1,17 @@ +Patch by Robert Scheck <robert@fedoraproject.org> for gnokii <= 0.6.31 to avoid +build failures with GCC 7.x as "../common/.libs/libgnokii.so: undefined reference +to `local_atoi'". The "inline" is only a hint that the compiler doesn't complain +about double defined symbols, but does not guarantee that a function is inlined +or that a symbol is generated when needed. + +--- gnokii-0.6.31/common/gsm-filetypes.c 2011-12-02 15:53:04.000000000 +0100 ++++ gnokii-0.6.31/common/gsm-filetypes.c.gcc7 2017-02-12 00:55:39.000000000 +0100 +@@ -1409,7 +1409,7 @@ + #define GET_NEXT_TOKEN() o = get_next_token(line + offset, ';') + #define STORE_TOKEN(a) strip_slashes(a, line + offset, sizeof(a) - 1, o - 1) + +-inline int local_atoi(char *str, int len) ++static int local_atoi(char *str, int len) + { + int retval; + char *aux = strndup(str, len); |