aboutsummaryrefslogtreecommitdiffstats
path: root/games/tt/files/patch-tt.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/tt/files/patch-tt.c')
-rw-r--r--games/tt/files/patch-tt.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/games/tt/files/patch-tt.c b/games/tt/files/patch-tt.c
new file mode 100644
index 000000000000..c87cc23aa8eb
--- /dev/null
+++ b/games/tt/files/patch-tt.c
@@ -0,0 +1,37 @@
+--- tt.c.orig Tue May 27 17:46:22 2003
++++ tt.c Sat Sep 13 09:55:18 2003
+@@ -21,6 +21,7 @@
+ #include <fcntl.h>
+ #include <errno.h>
+ #include <pwd.h>
++#include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+
+@@ -32,19 +33,19 @@
+
+ /*-------------------------------------------------------------------------*/
+
+-extern time_t time ();
+-extern char *ctime ();
+-extern char *malloc ();
+-extern char *getenv ();
+-extern char *getlogin ();
+-extern struct passwd *getpwuid ();
++//extern time_t time ();
++//extern char *ctime ();
++//extern char *malloc ();
++//extern char *getenv ();
++//extern char *getlogin ();
++//extern struct passwd *getpwuid ();
+
+ static int get_key ();
+
+ /*-------------------------------------------------------------------------*/
+
+ char *LOCK_FILE = "/home/mike/lib/ttlock/ttlock";
+-char *SCORE_FILE = "/home/mike/lib/ttscores";
++char *SCORE_FILE = "/var/games/ttscores";
+
+ /* These four variables determine which game we're playing */
+ struct piece *pieces = pieces4;