diff options
Diffstat (limited to 'games-board/crafty/files/crafty-18.15-ppc.patch')
-rw-r--r-- | games-board/crafty/files/crafty-18.15-ppc.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/games-board/crafty/files/crafty-18.15-ppc.patch b/games-board/crafty/files/crafty-18.15-ppc.patch new file mode 100644 index 000000000000..f53cc94b130e --- /dev/null +++ b/games-board/crafty/files/crafty-18.15-ppc.patch @@ -0,0 +1,24 @@ +--- utility.c.orig Thu May 23 19:02:28 2002 ++++ utility.c Fri Aug 2 22:29:49 2002 +@@ -1159,12 +1159,18 @@ + } + + void Print(int vb, char *fmt, ...) { +- va_list ap; ++ va_list ap, ap2; + va_start(ap,fmt); ++ #ifdef __va_copy ++ __va_copy(ap2, ap); ++ #else ++ /* FIXME: C99 has va_copy() - test for C99 and use it if present */ ++ ap2 = ap; ++ #endif + if (vb&display_options) vprintf(fmt, ap); + fflush(stdout); + if (time_limit>99 || tc_time_remaining>6000 || vb==4095) { +- if (log_file) vfprintf(log_file, fmt, ap); ++ if (log_file) vfprintf(log_file, fmt, ap2); + if (log_file) fflush(log_file); + } + va_end(ap); + |