diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-08-09 17:46:41 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-08-09 17:46:41 +0000 |
commit | b956d7e9cd17eca568d79b14cde60c83a383b37c (patch) | |
tree | cffb8ee46ad90e821284c632bcc1708eabf781c5 /net-im/jabberd/files | |
parent | Masking dev-util/sgb for QA removal. (diff) | |
download | gentoo-2-b956d7e9cd17eca568d79b14cde60c83a383b37c.tar.gz gentoo-2-b956d7e9cd17eca568d79b14cde60c83a383b37c.tar.bz2 gentoo-2-b956d7e9cd17eca568d79b14cde60c83a383b37c.zip |
Fix building with GLIBC 2.10+ wrt #274217.
(Portage version: 2.2_rc36/cvs/Linux x86_64)
Diffstat (limited to 'net-im/jabberd/files')
-rw-r--r-- | net-im/jabberd/files/jabberd-1.6.1.1-glibc-2.10.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/net-im/jabberd/files/jabberd-1.6.1.1-glibc-2.10.patch b/net-im/jabberd/files/jabberd-1.6.1.1-glibc-2.10.patch new file mode 100644 index 000000000000..7d37cf294ed2 --- /dev/null +++ b/net-im/jabberd/files/jabberd-1.6.1.1-glibc-2.10.patch @@ -0,0 +1,35 @@ +diff -ur jabberd14-1.6.1.1.orig/jabberd/lib/xmlnode.cc jabberd14-1.6.1.1/jabberd/lib/xmlnode.cc +--- jabberd14-1.6.1.1.orig/jabberd/lib/xmlnode.cc 2007-04-07 22:43:18.000000000 +0300 ++++ jabberd14-1.6.1.1/jabberd/lib/xmlnode.cc 2009-08-09 20:42:19.000000000 +0300 +@@ -910,8 +910,8 @@ + } + + /* separate this step from the next one, and check for a predicate in this step */ +- start_predicate = strchr(path, '['); +- next_step = strchr(path, '/'); ++ start_predicate = const_cast<char*> (strchr(path, '[')); ++ next_step = const_cast<char*> (strchr(path, '/')); + if (start_predicate == NULL && next_step == NULL) { + this_step = pstrdup(p, path); + } else if (start_predicate == NULL || start_predicate > next_step && next_step != NULL) { +@@ -1833,7 +1833,7 @@ + if (lang != NULL && strchr(lang, '-') != NULL) { + snprintf(general_lang, sizeof(general_lang), "%s", lang); + if (strchr(lang, '-') != NULL) { +- strchr(lang, '-')[0] = 0; ++ const_cast<char*> (strchr(lang, '-'))[0] = 0; + } else { + general_lang[0] = 0; + } +diff -ur jabberd14-1.6.1.1.orig/jabberd/log.cc jabberd14-1.6.1.1/jabberd/log.cc +--- jabberd14-1.6.1.1.orig/jabberd/log.cc 2007-07-20 16:56:59.000000000 +0300 ++++ jabberd14-1.6.1.1/jabberd/log.cc 2009-08-09 20:47:12.000000000 +0300 +@@ -86,7 +86,7 @@ + char *pos, c = '\0'; + if(zone != NULL && debug__zones != NULL) + { +- pos = strchr(zone,'.'); ++ pos = const_cast<char*> (strchr(zone,'.')); + if(pos != NULL) + { + c = *pos; |