1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00

emulators/snes9x: unbreak with libc++ 3.9

unix/unix.cpp:1451:9: error: cannot initialize a variable of type 'char *' with an rvalue of type
      'const char *'
  char *slash = strrchr(path, SLASH_CHAR);
        ^       ~~~~~~~~~~~~~~~~~~~~~~~~~
unix/unix.cpp:1452:9: error: cannot initialize a variable of type 'char *' with an rvalue of type
      'const char *'
  char *dot = strrchr(path, '.');
        ^     ~~~~~~~~~~~~~~~~~~

PR:		212343
Regressed by:	https://github.com/llvm-mirror/libcxx/commit/b4aa97130b8b
This commit is contained in:
Jan Beich 2017-01-03 21:04:37 +00:00
parent b682b1cf43
commit d0ab485037
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=430522
2 changed files with 12 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= snes9x
PORTVERSION= 1.51
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= emulators
MASTER_SITES= http://files.ipherswipsite.com/snes9x/ \
http://www.lysator.liu.se/snes9x/${PORTVERSION}/

View File

@ -417,6 +417,17 @@
#endif // defined (JOYSTICK_SUPPORT)
START_EXTERN_C
@@ -1162,8 +1448,8 @@ void _splitpath(const char *path, char *
{
*drive = 0;
- char *slash = strrchr(path, SLASH_CHAR);
- char *dot = strrchr(path, '.');
+ const char *slash = strrchr(path, SLASH_CHAR);
+ const char *dot = strrchr(path, '.');
if (dot && slash && dot < slash)
{
@@ -1716,7 +2002,7 @@
}
#endif