1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

- Fix build with clang 3.9

PR:		214650
Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2016-11-25 14:27:36 +00:00
parent c01e294635
commit 3e2501b5a2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=427115
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- plugins/vfspk3/vfs.cpp.orig 2006-02-10 22:01:20 UTC
+++ plugins/vfspk3/vfs.cpp
@@ -351,7 +351,7 @@ void InitDirectory(const char* directory
if(name == 0)
break;
- char *ext = strrchr (name, '.');
+ const char *ext = strrchr (name, '.');
if ((ext == 0) || *(++ext) == '\0' || GetArchiveTable(archiveModules, ext) == 0)
continue;

View File

@ -0,0 +1,13 @@
--- radiant/eclass_def.cpp.orig 2006-02-10 22:01:20 UTC
+++ radiant/eclass_def.cpp
@@ -168,8 +168,8 @@ void setSpecialLoad(EntityClass *e, cons
// Hydra: removed some amazingly bad cstring usage, whoever wrote that
// needs to be taken out and shot.
- char *pText = 0;
- char *where = 0;
+ const char *pText = 0;
+ const char *where = 0;
where = strstr(e->comments(),pWhat);
if (!where)