freebsd-ports/games/pinball/files/patch-base_Config.cpp
Dmitry Marakasov 1a477d2b37 - Fix build with libc++ 3.9
- Add LICENSE_FILE
- Switch to USES=localbase
- Simplify docs installation

PR:		214651
Reported by:	jbeich
Approved by:	maintainer timeout (thierry, 3 weeks)
2016-12-13 16:26:19 +00:00

13 lines
449 B
C++

--- base/Config.cpp.orig 2003-11-21 07:59:09 UTC
+++ base/Config.cpp
@@ -423,8 +423,8 @@ void Config::setPaths(char const * const
m_sDataDir = string(EM_DATADIR) + "/";
m_sExeDir = "./";
if ( *( m_sDataDir.c_str() ) != '/' ) {
- char* ptr=0;
- char* ptrw = 0;
+ const char* ptr=0;
+ const char* ptrw = 0;
//cout<<"relative to exe file"<<endl;
ptr = (strrchr(argv0,'/')); // unix /cygwin / check win32
#ifdef WIN32