svn commit: r546784 - head/games/ctris/files
Tobias C. Berner
tcberner at FreeBSD.org
Fri Aug 28 18:15:19 UTC 2020
Author: tcberner
Date: Fri Aug 28 18:15:17 2020
New Revision: 546784
URL: https://svnweb.freebsd.org/changeset/ports/546784
Log:
games/ctris: fix build on recent current
Added:
head/games/ctris/files/
head/games/ctris/files/patch-brick.h (contents, props changed)
head/games/ctris/files/patch-ctris.h (contents, props changed)
Added: head/games/ctris/files/patch-brick.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/ctris/files/patch-brick.h Fri Aug 28 18:15:17 2020 (r546784)
@@ -0,0 +1,11 @@
+--- brick.h.orig 2020-08-28 18:12:58 UTC
++++ brick.h
+@@ -8,7 +8,7 @@ void find_index(char [4][4], unsigned char *, unsigned
+ char check_brick(char [BOARD_HEIGHT][BOARD_WIDTH], char [4][4], const unsigned char, const unsigned char);
+ void draw_to_board(char [BOARD_HEIGHT][BOARD_WIDTH], char [4][4], const char, const unsigned char, const unsigned char);
+
+-char brick_digit[7][4][4];
++extern char brick_digit[7][4][4];
+
+ #endif
+
Added: head/games/ctris/files/patch-ctris.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/ctris/files/patch-ctris.h Fri Aug 28 18:15:17 2020 (r546784)
@@ -0,0 +1,23 @@
+--- ctris.h.orig 2015-08-24 12:06:35 UTC
++++ ctris.h
+@@ -15,7 +15,7 @@
+ #include <limits.h>
+ #include <time.h>
+
+-#define VERSION "v0.42" // version info
++#define VERSION "v0.42.1" // version info
+ #define HEIGHT 24 // height of the screen
+ #define WIDTH 80 // width of the screen
+ #define BOARD_HEIGHT (HEIGHT - 5) // height of the board
+@@ -44,9 +44,9 @@ void handle_quit_signal(const int);
+ unsigned char get_rand(const unsigned char);
+ int main(int, char *[]);
+
+-char game_state, old_style_keys, counterclockwise_rotation, hide_cursor_workaround, highscore_file_path[256], default_name[40];
++extern char game_state, old_style_keys, counterclockwise_rotation, hide_cursor_workaround, highscore_file_path[256], default_name[40];
+
+-unsigned long rseed;
++extern unsigned long rseed;
+
+ #endif
+
More information about the svn-ports-head
mailing list