From 001d29a889f6214694273ba093a63dda0ff82ea9 Mon Sep 17 00:00:00 2001 From: "Sergey A. Osokin" Date: Fri, 18 Jul 2003 10:44:35 +0000 Subject: [PATCH] Fix build on -CURRENT (gcc 3.3) Submitted by: Kirill Ponomarew PR: 54609 --- games/phalanx/files/patch-phalanx.c | 57 +++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 games/phalanx/files/patch-phalanx.c diff --git a/games/phalanx/files/patch-phalanx.c b/games/phalanx/files/patch-phalanx.c new file mode 100644 index 000000000000..b5b3345475b8 --- /dev/null +++ b/games/phalanx/files/patch-phalanx.c @@ -0,0 +1,57 @@ +--- phalanx.c.orig Fri Jul 18 13:36:59 2003 ++++ phalanx.c Fri Jul 18 13:38:52 2003 +@@ -11,30 +11,30 @@ + + void badoptions(void) + { +-printf("\ +-Usage: phalanx [options] [ []] +- phalanx [options] [] +- phalanx bench +- phalanx bcreate [options] +-Options: -t +- -f +- -x <+/-> xboard mode on/off default: on +- -p <+/-> permanent brain on/off default: off +- -s <+/-> show thinking on/off default: off +- -c <+/-> cpu time default: off +- -o <+/-> polling input default: on +- -b <+/-> opening book default: on +- -r default: 0 (no resigning) +- -e default: 0 (best play) +- -l <+/-> learning on/off default: on +- -v print version and exit +- -P +- -S +- -L +- -g +-Examples: phalanx -c+ -s+ -o - -x- -f 60 -t4000 +- xboard -fcp \"phalanx -l+ -r800\" +-"); ++printf("\n" ++"Usage: phalanx [options] [ []]\n" ++ "phalanx [options] []\n" ++ "phalanx bench\n" ++ "phalanx bcreate [options]\n" ++"Options: -t \n" ++ "-f \n" ++ "-x <+/-> xboard mode on/off default: on\n" ++ "-p <+/-> permanent brain on/off default: off\n" ++ "-s <+/-> show thinking on/off default: off\n" ++ "-c <+/-> cpu time default: off\n" ++ "-o <+/-> polling input default: on\n" ++ "-b <+/-> opening book default: on\n" ++ "-r default: 0 (no resigning)\n" ++ "-e default: 0 (best play)\n" ++ "-l <+/-> learning on/off default: on\n" ++ "-v print version and exit\n" ++ "-P \n" ++ "-S \n" ++ "-L \n" ++ "-g \n" ++"Examples: phalanx -c+ -s+ -o - -x- -f 60 -t4000\n" ++ "xboard -fcp \"phalanx -l+ -r800\n" ++); + exit(0); + } +