diff options
author | glewis <glewis@FreeBSD.org> | 2003-10-26 06:23:20 +0000 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2003-10-26 06:23:20 +0000 |
commit | 7c62bc2b8450e31455dc2a7a8142ed87a74e7e7b (patch) | |
tree | 10136533ef978ce8d6cb768fa42db3ceb793d423 /games/44bsd-hunt/files | |
parent | 791d2c70243a76afadb95388209a8b689537ad31 (diff) | |
download | FreeBSD-ports-7c62bc2b8450e31455dc2a7a8142ed87a74e7e7b.zip FreeBSD-ports-7c62bc2b8450e31455dc2a7a8142ed87a74e7e7b.tar.gz |
. Fix build with gcc33. The patch used is different than the one in the
PR and appears to more closely fit the original authors intentions.
PR: 58533
Diffstat (limited to 'games/44bsd-hunt/files')
-rw-r--r-- | games/44bsd-hunt/files/patch-driver.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/games/44bsd-hunt/files/patch-driver.c b/games/44bsd-hunt/files/patch-driver.c new file mode 100644 index 0000000..daf2ad6 --- /dev/null +++ b/games/44bsd-hunt/files/patch-driver.c @@ -0,0 +1,21 @@ +$FreeBSD$ + +--- driver.c.orig Sat Oct 25 23:20:56 2003 ++++ driver.c Sat Oct 25 23:21:54 2003 +@@ -9,6 +9,7 @@ + # include <errno.h> + # include <sys/ioctl.h> + # include <sys/time.h> ++# include <err.h> + + # ifndef pdp11 + # define RN (((Seed = Seed * 11109 + 13849) >> 16) & 0xffff) +@@ -653,7 +654,7 @@ + if (np->p_flying < 0) + break; + if (np >= &Boot[NBOOTS]) +- abort(1, "Too many boots"); ++ errx(1, "Too many boots"); + np->p_undershot = FALSE; + np->p_x = pp->p_x; + np->p_y = pp->p_y; |