freebsd-ports/games/seabattle/files/patch-batt.h
Tobias Kortkamp 61838c3a6d games/seabattle: Fix build after ncurses update(?)
In file included from binp.c:6:
./batt.h:57:6: error: conflicting types for 'exit_curses'
void exit_curses(void);
     ^
/usr/include/curses.h:2093:29: note: previous declaration is here
extern NCURSES_EXPORT(void) exit_curses (int) GCC_NORETURN;
                            ^
binp.c:45:6: error: conflicting types for 'exit_curses'
void exit_curses(void)                     /* Shutdown curses nicely so the */
     ^
2020-03-18 07:54:37 +00:00

20 lines
710 B
C

--- batt.h.orig 1997-05-13 19:58:17 UTC
+++ batt.h
@@ -2,7 +2,7 @@
* batt.h Part of the SEABATTLE game by Vince Weaver *
************************************************************************/
-#include <curses.h> /* Slang support is good for rxvt in linux */
+#include <ncurses.h> /* Slang support is good for rxvt in linux */
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
@@ -54,7 +54,7 @@ DATA *current_player;
/* binp.c */
void init_curses(void); /* All the function declarations */
-void exit_curses(void);
+void exit_curses_(void);
void set_color(int color,int bold);
void printxy(int x,int y,char *tempst);
void draw_opening(void);