summaryrefslogtreecommitdiff
path: root/games/traindirector/files
diff options
context:
space:
mode:
Diffstat (limited to 'games/traindirector/files')
-rw-r--r--games/traindirector/files/patch-MAKEFILE47
-rw-r--r--games/traindirector/files/patch-field.c10
-rw-r--r--games/traindirector/files/patch-gtkmain.c11
-rw-r--r--games/traindirector/files/patch-loadsave.c11
-rw-r--r--games/traindirector/files/patch-run.c43
-rw-r--r--games/traindirector/files/patch-tgraph.c11
-rw-r--r--games/traindirector/files/patch-track.c11
-rw-r--r--games/traindirector/files/patch-track1.c11
-rw-r--r--games/traindirector/files/patch-trsim.c11
9 files changed, 166 insertions, 0 deletions
diff --git a/games/traindirector/files/patch-MAKEFILE b/games/traindirector/files/patch-MAKEFILE
new file mode 100644
index 000000000000..69d3b0364d18
--- /dev/null
+++ b/games/traindirector/files/patch-MAKEFILE
@@ -0,0 +1,47 @@
+*** MAKEFILE.orig Sat May 20 09:37:10 2000
+--- MAKEFILE Fri Nov 15 17:35:13 2002
+***************
+*** 1,20 ****
+! OBJS = button.o clist.o field.o gtkask.o gtkmain.o loadsave.o \
+! menu.o run.o table.o track.o trsim.o
+
+ CC = gcc
+
+! CFLAGS =
+
+ DEBUG = -g
+
+ all: trsim
+
+ trsim: $(OBJS)
+! $(CC) -o $@ $(OBJS) `gtk-config --libs` -lcurses
+
+ .c.o:
+! $(CC) `gtk-config --cflags` $(CFLAGS) $(DEBUG) -c $<
+
+
+ clean:
+ rm -f *.o trsim core
+--- 1,22 ----
+! OBJS = button.o clist.o field.o gtkask.o gtkmain.o gtkopen.o gdialog.o \
+! loadsave.o menu.o run.o table.o track.o trsim.o html.o tgraph.o
+
+ CC = gcc
+
+! CFLAGS +=
+
+ DEBUG = -g
+
+ all: trsim
+
+ trsim: $(OBJS)
+! $(CC) -o $@ $(OBJS) `gtk12-config --libs` -lcurses
+
+ .c.o:
+! $(CC) `gtk12-config --cflags` $(CFLAGS) $(DEBUG) -c $<
+
++ install: trsim
++ $(INSTALL) -o bin -g bin -m 555 trsim $(PREFIX)/bin
+
+ clean:
+ rm -f *.o trsim core
diff --git a/games/traindirector/files/patch-field.c b/games/traindirector/files/patch-field.c
new file mode 100644
index 000000000000..4b72efe9aa98
--- /dev/null
+++ b/games/traindirector/files/patch-field.c
@@ -0,0 +1,10 @@
+--- field.c.orig Sun Sep 7 23:43:51 2003
++++ field.c Sun Sep 7 23:43:58 2003
+@@ -22,7 +22,6 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdlib.h>
+-#include <malloc.h>
+ #include "trsim.h"
+ #include "gtkui.h"
+
diff --git a/games/traindirector/files/patch-gtkmain.c b/games/traindirector/files/patch-gtkmain.c
new file mode 100644
index 000000000000..e83205b93da1
--- /dev/null
+++ b/games/traindirector/files/patch-gtkmain.c
@@ -0,0 +1,11 @@
+--- gtkmain.c.orig Sun Sep 7 23:48:20 2003
++++ gtkmain.c Sun Sep 7 23:48:30 2003
+@@ -143,7 +143,7 @@
+
+ #ifdef unix
+ if(getenv("TDHOME"))
+- chdir(getenv("TDHOME"))
++ chdir(getenv("TDHOME"));
+ #endif
+ screen_width = gdk_screen_width();
+
diff --git a/games/traindirector/files/patch-loadsave.c b/games/traindirector/files/patch-loadsave.c
new file mode 100644
index 000000000000..2a94cc36bdb4
--- /dev/null
+++ b/games/traindirector/files/patch-loadsave.c
@@ -0,0 +1,11 @@
+--- loadsave.c.orig Sun Sep 7 23:41:44 2003
++++ loadsave.c Sun Sep 7 23:41:51 2003
+@@ -20,7 +20,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include <memory.h>
+ #include <string.h>
+ #include "trsim.h"
diff --git a/games/traindirector/files/patch-run.c b/games/traindirector/files/patch-run.c
new file mode 100644
index 000000000000..1e80164bdb6a
--- /dev/null
+++ b/games/traindirector/files/patch-run.c
@@ -0,0 +1,43 @@
+--- run.c.orig Sun Sep 7 23:40:41 2003
++++ run.c Sun Sep 7 23:42:04 2003
+@@ -20,10 +20,15 @@
+
+ #include <stdio.h>
+ #include <string.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include "ask.h"
+ #include "trsim.h"
+
++#if (defined(__unix__) || defined(unix)) && !defined(USG)
++#include <sys/param.h>
++#endif
++
++
+ int assign_ok = 1;
+
+ int changed;
+@@ -56,7 +61,11 @@
+ {
+ if(i >= v->size) {
+ printf("Bad index %d: only %d elements in vector!\n", i, v->size);
++#if (defined(BSD) && (BSD >= 199103))
++ abort();
++#else
+ abort(0);
++#endif
+ }
+ return v->ptr[i];
+ }
+@@ -65,7 +74,11 @@
+ {
+ if(i >= v->size) {
+ printf("Bad index %d: only %d elements in vector!\n", i, v->size);
++#if (defined(BSD) && (BSD >= 199103))
++ abort();
++#else
+ abort(0);
++#endif
+ }
+ return v->flags[i];
+ }
diff --git a/games/traindirector/files/patch-tgraph.c b/games/traindirector/files/patch-tgraph.c
new file mode 100644
index 000000000000..7848a0e0b606
--- /dev/null
+++ b/games/traindirector/files/patch-tgraph.c
@@ -0,0 +1,11 @@
+--- tgraph.c.orig Sun Sep 7 23:42:59 2003
++++ tgraph.c Sun Sep 7 23:43:04 2003
+@@ -22,7 +22,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdlib.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include "trsim.h"
+
+ #define STATION_WIDTH 100
diff --git a/games/traindirector/files/patch-track.c b/games/traindirector/files/patch-track.c
new file mode 100644
index 000000000000..357a55c5bd35
--- /dev/null
+++ b/games/traindirector/files/patch-track.c
@@ -0,0 +1,11 @@
+--- track.c.orig Sun Sep 7 23:43:06 2003
++++ track.c Sun Sep 7 23:43:10 2003
+@@ -20,7 +20,7 @@
+
+ #include <stdio.h>
+ #include <string.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include "trsim.h"
+ #include "ask.h"
+
diff --git a/games/traindirector/files/patch-track1.c b/games/traindirector/files/patch-track1.c
new file mode 100644
index 000000000000..8ec389a61325
--- /dev/null
+++ b/games/traindirector/files/patch-track1.c
@@ -0,0 +1,11 @@
+--- track1.c.orig Sun Sep 7 23:43:12 2003
++++ track1.c Sun Sep 7 23:43:16 2003
+@@ -20,7 +20,7 @@
+
+ #include <stdio.h>
+ #include <string.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include "trsim.h"
+ #include "ask.h"
+
diff --git a/games/traindirector/files/patch-trsim.c b/games/traindirector/files/patch-trsim.c
new file mode 100644
index 000000000000..816ebada3aad
--- /dev/null
+++ b/games/traindirector/files/patch-trsim.c
@@ -0,0 +1,11 @@
+--- trsim.c.orig Sun Sep 7 23:43:16 2003
++++ trsim.c Sun Sep 7 23:43:23 2003
+@@ -20,7 +20,7 @@
+
+ #include <stdio.h>
+ #include <string.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include <stdlib.h>
+ #include "ask.h"
+ #include "html.h"