aboutsummaryrefslogtreecommitdiff
path: root/games/bsdgames/files
diff options
context:
space:
mode:
Diffstat (limited to 'games/bsdgames/files')
-rw-r--r--games/bsdgames/files/patch-battlestar_externs.h (renamed from games/bsdgames/files/patch-battlestar)11
-rw-r--r--games/bsdgames/files/patch-battlestar_fly.c11
-rw-r--r--games/bsdgames/files/patch-cribbage_instr.c (renamed from games/bsdgames/files/patch-dfly)14
-rw-r--r--games/bsdgames/files/patch-hack_hack.unix.c (renamed from games/bsdgames/files/patch-hack)28
-rw-r--r--games/bsdgames/files/patch-sail_pl_1.c14
5 files changed, 39 insertions, 39 deletions
diff --git a/games/bsdgames/files/patch-battlestar b/games/bsdgames/files/patch-battlestar_externs.h
index f2f85218cae0..c6bfa19de6b6 100644
--- a/games/bsdgames/files/patch-battlestar
+++ b/games/bsdgames/files/patch-battlestar_externs.h
@@ -1,14 +1,3 @@
-diff -Naur battlestar.orig/fly.c battlestar/fly.c
---- battlestar.orig/fly.c 2012-03-22 13:59:00.000000000 +0100
-+++ battlestar/fly.c 2012-03-22 13:59:09.000000000 +0100
-@@ -294,6 +294,7 @@
- signal(SIGALRM, SIG_DFL);
- mvcur(0,COLS-1,LINES-1,0);
- endwin();
-+ setlinebuf(stdout);
- signal(SIGTSTP, SIG_DFL);
- signal(SIGINT, oldsig);
- }
--- battlestar/externs.h.orig 2012-05-25 11:57:52.000000000 +0200
+++ battlestar/externs.h 2012-05-25 11:57:55.000000000 +0200
@@ -44,15 +44,18 @@
diff --git a/games/bsdgames/files/patch-battlestar_fly.c b/games/bsdgames/files/patch-battlestar_fly.c
new file mode 100644
index 000000000000..9cffa3f81bcf
--- /dev/null
+++ b/games/bsdgames/files/patch-battlestar_fly.c
@@ -0,0 +1,11 @@
+diff -Naur battlestar.orig/fly.c battlestar/fly.c
+--- battlestar.orig/fly.c 2012-03-22 13:59:00.000000000 +0100
++++ battlestar/fly.c 2012-03-22 13:59:09.000000000 +0100
+@@ -286,6 +286,7 @@
+ signal(SIGALRM, SIG_DFL);
+ mvcur(0,COLS-1,LINES-1,0);
+ endwin();
++ setlinebuf(stdout);
+ signal(SIGTSTP, SIG_DFL);
+ signal(SIGINT, oldsig);
+ }
diff --git a/games/bsdgames/files/patch-dfly b/games/bsdgames/files/patch-cribbage_instr.c
index f67f19f89f11..0c4b09851d2a 100644
--- a/games/bsdgames/files/patch-dfly
+++ b/games/bsdgames/files/patch-cribbage_instr.c
@@ -24,17 +24,3 @@
exit(1);
}
}
---- ./sail/pl_1.c
-+++ ./sail/pl_1.c
-@@ -122,7 +122,11 @@ choke(void)
- void
- child(void)
- {
-+#ifdef __DragonFly__
- union wait status;
-+#else
-+ int status;
-+#endif
- int pid;
-
- signal(SIGCHLD, SIG_IGN);
diff --git a/games/bsdgames/files/patch-hack b/games/bsdgames/files/patch-hack_hack.unix.c
index 7165fa62fdb9..39773be5ba9d 100644
--- a/games/bsdgames/files/patch-hack
+++ b/games/bsdgames/files/patch-hack_hack.unix.c
@@ -1,28 +1,28 @@
---- hack/hack.unix.c.orig 2009-09-24 10:46:30.000000000 +0200
-+++ hack/hack.unix.c 2009-11-04 18:49:58.645035610 +0100
-@@ -19,7 +19,9 @@
+--- hack/hack.unix.c.orig 2014-07-22 09:54:22.000000000 -0400
++++ hack/hack.unix.c 2014-07-22 10:20:43.000000000 -0400
+@@ -18,7 +18,9 @@
- #include <sys/types.h> /* for time_t and stat */
- #include <sys/stat.h>
-+#include <sys/param.h>
- #include <time.h>
-+#include <err.h>
+ #include <sys/types.h> /* for time_t and stat */
+ #include <sys/stat.h>
++#include <sys/param.h>
+ #include <time.h>
++#include <err.h>
- static struct tm *getlt(void);
- static bool veryold(int);
-@@ -95,13 +97,32 @@
+ static struct tm *getlt(void);
+ static bool veryold(int);
+@@ -94,13 +96,32 @@
void
gethdate(const char *name)
{
-/* old version - for people short of space */
--char *np;
+- char *np;
+ char *p, *np, *path;
+ char filename[MAXPATHLEN+1];
- name = "/usr/games/hide/hack";
-- if(stat(name, &hbuf))
+- if (stat(name, &hbuf))
- error("Cannot get status of %s.",
-- (np = rindex(name, '/')) ? np+1 : name);
+- (np = strrchr(name, '/')) ? np + 1 : name);
+ if (strchr(name, '/') != NULL || (p = getenv("PATH")) == NULL)
+ p = "";
+ np = path = strdup(p); /* Make a copy for strsep. */
diff --git a/games/bsdgames/files/patch-sail_pl_1.c b/games/bsdgames/files/patch-sail_pl_1.c
new file mode 100644
index 000000000000..c858f5e30bb4
--- /dev/null
+++ b/games/bsdgames/files/patch-sail_pl_1.c
@@ -0,0 +1,14 @@
+--- ./sail/pl_1.c
++++ ./sail/pl_1.c
+@@ -122,7 +122,11 @@ choke(void)
+ void
+ child(void)
+ {
++#ifdef __DragonFly__
+ union wait status;
++#else
++ int status;
++#endif
+ int pid;
+
+ signal(SIGCHLD, SIG_IGN);