freebsd-ports/games/adonthell/files/patch-src_prefs.cc
Martin Wilke de06319d75 - Fix build with gcc 4.2
PR:		118185
Submitted by:	Pietro Cerutti <gahr@gahr.ch>
Approved by:	portmgr (erwin)
2007-11-22 08:37:10 +00:00

11 lines
498 B
C++

--- src/prefs.cc.orig 2007-11-21 17:58:31.000000000 +0100
+++ src/prefs.cc 2007-11-21 17:58:43.000000000 +0100
@@ -144,7 +144,7 @@
case 'c':
{
python::init ();
- python::exec_string ("import compileall; compileall.compile_dir (\".\", 0);");
+ python::exec_string ((char *)"import compileall; compileall.compile_dir (\".\", 0);");
python::cleanup ();
exit (0);
break;