1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

games/gnugo: FIx build with -fno-common

Fix the build of games/gnugo with -fno-common, which is the default when
building with llvm 11.

MFH:		2020Q3 (implicit, -fno-common fixes, ok by joenum)
This commit is contained in:
Niclas Zeising 2020-08-25 09:39:57 +00:00
parent d81d4f546d
commit f1f41b8961
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546147
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- engine/liberty.h.orig 2020-08-25 08:52:13 UTC
+++ engine/liberty.h
@@ -856,10 +856,6 @@ struct worm_data {
extern struct worm_data worm[BOARDMAX];
-/* Unconditionally meaningless moves. */
-int meaningless_black_moves[BOARDMAX];
-int meaningless_white_moves[BOARDMAX];
-
/* Surround cache (see surround.c) */
#define MAX_SURROUND 10

View File

@ -0,0 +1,13 @@
--- engine/unconditional.c.orig 2020-08-25 08:53:07 UTC
+++ engine/unconditional.c
@@ -29,6 +29,10 @@
#include "liberty.h"
+/* Unconditionally meaningless moves. */
+int meaningless_black_moves[BOARDMAX];
+int meaningless_white_moves[BOARDMAX];
+
/* Capture as many strings of the given color as we can. Played stones
* are left on the board and the number of played stones is returned.
* Strings marked in the exceptions array are excluded from capturing