Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2020 18:15:18 +0000 (UTC)
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r546784 - head/games/ctris/files
Message-ID:  <202008281815.07SIFIpO022795@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008281815.07SIFIpO022795>