This patch is a minimal build-fix patch for Core Wars Deluxe 2.0c. Only makes changes required to compile on modern systems. Usage: patch -p1 < deluxe20c.txt make -f Makefile.unx Common subdirectories: 1993/CODE and 2026/CODE Common subdirectories: 1993/CONFIG and 2026/CONFIG diff -u 1993/corewar.c 2026/corewar.c --- 1993/corewar.c 1993-04-16 15:41:54.000000000 +0100 +++ 2026/corewar.c 2026-01-07 11:00:16.833996211 +0000 @@ -1,6 +1,8 @@ #include "corewar.h" #include "display.h" +FILE *fp_in; +FILE *fp_out; extern ConfigSettings Config; /* Current config settings to be used. */ @@ -14,6 +16,9 @@ int argc; char **argv; { + fp_in = stdin; + fp_out = stdout; + srand(time(0)); if (!CommandLine(argc, argv)) exit(1); Common subdirectories: 1993/DOCUMENTS and 2026/DOCUMENTS diff -u 1993/tools.c 2026/tools.c --- 1993/tools.c 1993-01-14 04:10:24.000000000 +0000 +++ 2026/tools.c 2026-01-07 11:01:35.226299504 +0000 @@ -1,8 +1,7 @@ #include "corewar.h" - -FILE *fp_in = stdin; /* Default input comes from stdin. */ -FILE *fp_out = stdout; /* Default output goes to stdout. */ +extern FILE *fp_in; +extern FILE *fp_out; #ifdef DEBUG unsigned long memory = 0; /* Amount of memory in malloc/free. */ diff -u 1993/widgets.c 2026/widgets.c --- 1993/widgets.c 1993-04-20 14:35:49.000000000 +0100 +++ 2026/widgets.c 2026-01-07 11:02:59.918665977 +0000 @@ -27,10 +27,10 @@ #ifdef PROTOTYPING -char *strdup(char *s) +char *strdup(const char *s) #else char *strdup(s) -char *s; +const char *s; #endif { char *ret;