[MacPorts] #70909: rogue @5.4.4_3: incomplete definition of type 'struct _win_st'
MacPorts
noreply at macports.org
Sun Nov 24 02:33:24 UTC 2024
#70909: rogue @5.4.4_3: incomplete definition of type 'struct _win_st'
---------------------------+---------------------
Reporter: ShadSterling | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.1
Resolution: | Keywords: sequoia
Port: rogue |
---------------------------+---------------------
Comment (by dagui0):
I got same problem and solved it.
It's seems curses library compatibility issue, because very old coding
style.
Here's my patch.
-------------------- patch ------------------
diff -Nuar rogue5.4.4.orig/extern.h rogue5.4.4/extern.h
--- rogue5.4.4.orig/extern.h 2007-09-06 04:08:06.000000000 +0900
+++ rogue5.4.4/extern.h 2024-11-24 10:16:48.684919316 +0900
@@ -131,11 +131,11 @@
void doctor();
void end_line();
void endit(int sig);
-void fatal();
+void fatal(char *s);
void getltchars();
void land();
void leave(int);
-void my_exit();
+void my_exit(int st);
void nohaste();
void playit();
void playltchars(void);
@@ -144,7 +144,7 @@
void resetltchars(void);
void rollwand();
void runners();
-void set_order();
+void set_order(int*, int);
void sight();
void stomach();
void swander();
diff -Nuar rogue5.4.4.orig/main.c rogue5.4.4/main.c
--- rogue5.4.4.orig/main.c 2007-09-06 04:08:06.000000000 +0900
+++ rogue5.4.4/main.c 2024-11-24 10:17:16.586566729 +0900
@@ -238,8 +238,8 @@
getyx(curscr, y, x);
mvcur(y, x, oy, ox);
fflush(stdout);
- curscr->_cury = oy;
- curscr->_curx = ox;
+ oy = getcury(curscr);
+ ox = getcurx(curscr);
}
/*
diff -Nuar rogue5.4.4.orig/rip.c rogue5.4.4/rip.c
--- rogue5.4.4.orig/rip.c 2007-09-06 04:08:06.000000000 +0900
+++ rogue5.4.4/rip.c 2024-11-24 10:17:40.265722120 +0900
@@ -230,7 +230,6 @@
char **dp, *killer;
struct tm *lt;
static time_t date;
- struct tm *localtime();
signal(SIGINT, SIG_IGN);
purse -= purse / 10;
diff -Nuar rogue5.4.4.orig/rogue.h rogue5.4.4/rogue.h
--- rogue5.4.4.orig/rogue.h 2007-09-06 04:08:06.000000000 +0900
+++ rogue5.4.4/rogue.h 2024-11-24 10:18:08.129746886 +0900
@@ -729,7 +729,7 @@
extern struct delayed_action {
int d_type;
- void (*d_func)();
+ void (*d_func)(int d_arg);
int d_arg;
int d_time;
} d_list[MAXDAEMONS];
diff -Nuar rogue5.4.4.orig/state.c rogue5.4.4/state.c
--- rogue5.4.4.orig/state.c 2007-09-06 04:08:06.000000000 +0900
+++ rogue5.4.4/state.c 2024-11-24 10:18:31.635472170 +0900
@@ -1413,7 +1413,7 @@
for (i = 0; i < cnt; i++)
{
- l = new_item(sizeof(THING));
+ l = new_item();
memset(l,0,sizeof(THING));
--
Ticket URL: <https://trac.macports.org/ticket/70909#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list