Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-arcade/xevil/files: xevil-2.02_p2-glibc-2.10.patch
Date: Fri, 04 Sep 2009 04:24:13
Message-Id: E1MjV9w-0000TB-85@stork.gentoo.org
1 ssuominen 09/09/04 09:32:44
2
3 Added: xevil-2.02_p2-glibc-2.10.patch
4 Log:
5 Fix building with GLIBC 2.10+ wrt #273557 by Arttu Valo.
6 (Portage version: 2.2_rc40/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch?rev=1.1&content-type=text/plain
13
14 Index: xevil-2.02_p2-glibc-2.10.patch
15 ===================================================================
16 diff -ur cmn.old/utils.h cmn/utils.h
17 --- cmn.old/utils.h 2009-08-22 02:16:21.000000000 +0300
18 +++ cmn/utils.h 2009-08-22 02:26:33.000000000 +0300
19 @@ -238,13 +238,13 @@
20 same. */
21
22 static char* strchr(const char* cs,int c)
23 - {return ::strchr(cs,c);}
24 + {return const_cast<char*>(::strchr(cs,c));}
25
26 static char* strrchr(const char* cs,int c)
27 - {return ::strrchr(cs,c);}
28 + {return const_cast<char*>(::strrchr(cs,c));}
29
30 static char* strstr(const char* cs,const char* ct)
31 - {return ::strstr(cs,ct);}
32 + {return const_cast<char*>(::strstr(cs,ct));}
33
34 static void strcpy(char* s,const char* ct)
35 {::strcpy(s,ct);}