pkgsrc/games/exult/patches/patch-usecode_compiler_ucmain.cc
dholland fb3a07cf3a Fix const correctness problems that I ran into with gcc 4.5.
I have no idea why nobody else has seen this...
2011-12-21 16:58:15 +00:00

24 lines
564 B
C++

$NetBSD: patch-usecode_compiler_ucmain.cc,v 1.2 2011/12/21 16:58:15 dholland Exp $
- use standard headers
- const correctness demanded by gcc 4.5
--- usecode/compiler/ucmain.cc.orig 2003-09-18 06:37:05.000000000 +0000
+++ usecode/compiler/ucmain.cc
@@ -29,6 +29,7 @@ Foundation, Inc., 59 Temple Place - Suit
#include <fstream>
#include <unistd.h>
#include <stdio.h>
+#include <cstring>
#include <string>
#include <vector>
#include "ucloc.h"
@@ -133,7 +134,7 @@ int main
*/
void yyerror
(
- char *s
+ const char *s
)
{
Uc_location::yyerror(s);