diff options
author | jbeich <jbeich@FreeBSD.org> | 2016-05-30 19:58:42 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2016-05-30 19:58:42 +0800 |
commit | 50e903c4bbdc76c5ca8881eadafda0a0c1212ca2 (patch) | |
tree | 4ccf207dbcf2c5fff27a268ceab7bb7fe1ec09ec /games | |
parent | 85dc9c6fae9fdc15dfa607481b91d9da4276c04a (diff) | |
download | freebsd-ports-gnome-50e903c4bbdc76c5ca8881eadafda0a0c1212ca2.tar.gz freebsd-ports-gnome-50e903c4bbdc76c5ca8881eadafda0a0c1212ca2.tar.zst freebsd-ports-gnome-50e903c4bbdc76c5ca8881eadafda0a0c1212ca2.zip |
games/burrtools: unbreak build on 11.0
lib/stl.cpp: In member function 'void stlExporter_c::write(const char*, const voxel_c&, const faceList_c&)':
lib/stl.cpp:69:38: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
const char * title = basename(fname);
^
In file included from lib/stl.cpp:44:0:
/usr/include/libgen.h:38:7: error: initializing argument 1 of 'char* basename(char*)' [-fpermissive]
char *basename(char *);
^
PR: 209747
Reported by: antoine (exp-run)
Diffstat (limited to 'games')
-rw-r--r-- | games/burrtools/files/patch-src-lib-stl.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/games/burrtools/files/patch-src-lib-stl.cpp b/games/burrtools/files/patch-src-lib-stl.cpp index c2ea074a7d88..2295c039f148 100644 --- a/games/burrtools/files/patch-src-lib-stl.cpp +++ b/games/burrtools/files/patch-src-lib-stl.cpp @@ -18,3 +18,12 @@ void stlExporter_c::write(const char * fname, const voxel_c & v, const faceList_c & holes) +@@ -62,7 +64,7 @@ void stlExporter_c::write(const char * f + FILE * f; + unsigned long triangleCount = 0; + +- const char * title = basename(fname); ++ const char * title = basename(const_cast<char*>(fname)); + + if (binaryMode) + { |