pulseaudio: fix dependencies for openssl-3
[oi-userland.git] / components / games / gnugo / patches / 02-gcc-10.patch
blobe2bfca08585214d229c4aa96dab161da212e1cc6
1 --- gnugo-3.8/engine/liberty.h.orig 2020-05-24 07:57:41.409312486 +0000
2 +++ gnugo-3.8/engine/liberty.h 2020-05-24 07:59:26.051372294 +0000
3 @@ -57,7 +57,7 @@
4 struct dragon_data2 *dragon2_func(int pos);
6 /* Routine names used by persistent and non-persistent caching schemes. */
7 -enum routine_id {
8 +typedef enum routine_id {
9 OWL_ATTACK,
10 OWL_DEFEND,
11 SEMEAI,
12 @@ -119,7 +119,7 @@
13 * Also used for unconditional status in struct worm_data and for the
14 * final status computed by the aftermath code.
16 -enum dragon_status {
17 +typedef enum dragon_status {
18 DEAD,
19 ALIVE,
20 CRITICAL,
21 @@ -857,8 +857,8 @@
22 extern struct worm_data worm[BOARDMAX];
24 /* Unconditionally meaningless moves. */
25 -int meaningless_black_moves[BOARDMAX];
26 -int meaningless_white_moves[BOARDMAX];
27 +extern int meaningless_black_moves[BOARDMAX];
28 +extern int meaningless_white_moves[BOARDMAX];
30 /* Surround cache (see surround.c) */
32 --- gnugo-3.8/engine/unconditional.c.orig 2020-05-24 08:02:20.489566472 +0000
33 +++ gnugo-3.8/engine/unconditional.c 2020-05-24 08:02:35.190954307 +0000
34 @@ -29,6 +29,11 @@
36 #include "liberty.h"
39 +/* Unconditionally meaningless moves. */
40 +int meaningless_black_moves[BOARDMAX];
41 +int meaningless_white_moves[BOARDMAX];
43 /* Capture as many strings of the given color as we can. Played stones
44 * are left on the board and the number of played stones is returned.
45 * Strings marked in the exceptions array are excluded from capturing