diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-09-04 09:32:44 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-09-04 09:32:44 +0000 |
commit | 7c5b030458159959dd80c3914fba4ab45ad9d637 (patch) | |
tree | dd87861771e4cbc12febf79f6577c96c06f2fa0c /games-arcade/xevil/files | |
parent | Fix building with GLIBC 2.10+ wrt #282431. (diff) | |
download | gentoo-2-7c5b030458159959dd80c3914fba4ab45ad9d637.tar.gz gentoo-2-7c5b030458159959dd80c3914fba4ab45ad9d637.tar.bz2 gentoo-2-7c5b030458159959dd80c3914fba4ab45ad9d637.zip |
Fix building with GLIBC 2.10+ wrt #273557 by Arttu Valo.
(Portage version: 2.2_rc40/cvs/Linux x86_64)
Diffstat (limited to 'games-arcade/xevil/files')
-rw-r--r-- | games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch b/games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch new file mode 100644 index 000000000000..5375f2208a0d --- /dev/null +++ b/games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch @@ -0,0 +1,20 @@ +diff -ur cmn.old/utils.h cmn/utils.h +--- cmn.old/utils.h 2009-08-22 02:16:21.000000000 +0300 ++++ cmn/utils.h 2009-08-22 02:26:33.000000000 +0300 +@@ -238,13 +238,13 @@ + same. */ + + static char* strchr(const char* cs,int c) +- {return ::strchr(cs,c);} ++ {return const_cast<char*>(::strchr(cs,c));} + + static char* strrchr(const char* cs,int c) +- {return ::strrchr(cs,c);} ++ {return const_cast<char*>(::strrchr(cs,c));} + + static char* strstr(const char* cs,const char* ct) +- {return ::strstr(cs,ct);} ++ {return const_cast<char*>(::strstr(cs,ct));} + + static void strcpy(char* s,const char* ct) + {::strcpy(s,ct);} |