You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch

21 lines
645 B

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);}