From ded13f62b51b4034305d1e1bd4d71eb1147bb77e Mon Sep 17 00:00:00 2001 From: miwi Date: Wed, 31 Oct 2007 13:27:18 +0000 Subject: - Fix build with gcc 4.2 PR: 117699 Submitted by: Dmitry Marakasov Approved by: portmgr (pav) --- games/blobwars/Makefile | 8 +------- games/blobwars/files/patch-src-CFileData.h | 9 +++++++++ games/blobwars/files/patch-src-CKeyboard.h | 10 ++++++++++ 3 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 games/blobwars/files/patch-src-CFileData.h create mode 100644 games/blobwars/files/patch-src-CKeyboard.h (limited to 'games/blobwars') diff --git a/games/blobwars/Makefile b/games/blobwars/Makefile index 5b55864a6091..ce8429f2932c 100644 --- a/games/blobwars/Makefile +++ b/games/blobwars/Makefile @@ -36,10 +36,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR} .endif -.include - -.if ${OSVERSION} >= 700042 -BROKEN= Does not compile with GCC 4.2 -.endif - -.include +.include diff --git a/games/blobwars/files/patch-src-CFileData.h b/games/blobwars/files/patch-src-CFileData.h new file mode 100644 index 000000000000..1694343b105d --- /dev/null +++ b/games/blobwars/files/patch-src-CFileData.h @@ -0,0 +1,9 @@ +--- src/CFileData.h.orig 2005-04-25 18:25:38.000000000 +0000 ++++ src/CFileData.h 2007-10-31 02:26:03.000000000 +0000 +@@ -30,5 +30,5 @@ + FileData(); + + void swapEndians(); +- void FileData::set(char *filename, Uint32 fSize, Uint32 cSize, Uint32 location); ++ void set(char *filename, Uint32 fSize, Uint32 cSize, Uint32 location); + }; diff --git a/games/blobwars/files/patch-src-CKeyboard.h b/games/blobwars/files/patch-src-CKeyboard.h new file mode 100644 index 000000000000..7d8da3a6efbe --- /dev/null +++ b/games/blobwars/files/patch-src-CKeyboard.h @@ -0,0 +1,10 @@ +--- src/CKeyboard.h.orig 2005-04-25 18:25:38.000000000 +0000 ++++ src/CKeyboard.h 2007-10-31 02:29:26.000000000 +0000 +@@ -8,6 +8,6 @@ + + Keyboard(); + void setDefaultKeys(); +- static char *Keyboard::translateKey(int value); ++ static char *translateKey(int value); + + }; -- cgit