aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2018-06-22 07:02:29 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2018-06-22 07:02:29 +0800
commit173ef5b72bc329eaf5be116b2994334e00137d30 (patch)
tree67357daffdd2c2a298f3be25486a4c2ea09a77d1 /games
parentc4db9df3d4cc86cbfce464f8278b5b0164524893 (diff)
downloadfreebsd-ports-gnome-173ef5b72bc329eaf5be116b2994334e00137d30.tar.gz
freebsd-ports-gnome-173ef5b72bc329eaf5be116b2994334e00137d30.tar.zst
freebsd-ports-gnome-173ef5b72bc329eaf5be116b2994334e00137d30.zip
- Fix build with clang 6.0
Diffstat (limited to 'games')
-rw-r--r--games/amoebax/files/patch-configure16
-rw-r--r--games/amoebax/files/patch-src_NewHighScoreState.cxx11
2 files changed, 27 insertions, 0 deletions
diff --git a/games/amoebax/files/patch-configure b/games/amoebax/files/patch-configure
new file mode 100644
index 000000000000..76d7181795bd
--- /dev/null
+++ b/games/amoebax/files/patch-configure
@@ -0,0 +1,16 @@
+--- configure.orig 2008-08-02 10:10:49 UTC
++++ configure
+@@ -2329,12 +2329,7 @@ else
+ fi
+ fi
+ for ac_declaration in \
+- '' \
+- 'extern "C" void std::exit (int) throw (); using std::exit;' \
+- 'extern "C" void std::exit (int); using std::exit;' \
+- 'extern "C" void exit (int) throw ();' \
+- 'extern "C" void exit (int);' \
+- 'void exit (int);'
++ ''
+ do
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
diff --git a/games/amoebax/files/patch-src_NewHighScoreState.cxx b/games/amoebax/files/patch-src_NewHighScoreState.cxx
new file mode 100644
index 000000000000..815610cdd809
--- /dev/null
+++ b/games/amoebax/files/patch-src_NewHighScoreState.cxx
@@ -0,0 +1,11 @@
+--- src/NewHighScoreState.cxx.orig 2007-07-29 16:48:20 UTC
++++ src/NewHighScoreState.cxx
+@@ -396,7 +396,7 @@ NewHighScoreState::unicodeCharacterPress
+ // FIXME: We are only interessted with ASCII values.
+ if ( 0 == (code & 0xff80) )
+ {
+- char character[2] = {toupper (static_cast<char>(code & 0x7f)), '\0'};
++ char character[2] = {static_cast<char>(toupper (static_cast<char>(code & 0x7f)), '\0')};
+ std::string::size_type characterPos =
+ m_CursorValues.find (std::string (character));
+ if ( std::string::npos != characterPos )