diff options
author | joerg <joerg@pkgsrc.org> | 2005-12-29 20:27:14 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-12-29 20:27:14 +0000 |
commit | c9bfbc08f7aed616ac4024c54bc6c493d3bad613 (patch) | |
tree | 10b86f40c1ba68aec2add8228cf618b9ac7e5832 /games/xworm | |
parent | 0500f7f0af77db375b6f6793217e730ae5420a30 (diff) | |
download | pkgsrc-c9bfbc08f7aed616ac4024c54bc6c493d3bad613.tar.gz |
sys/time.h needed for DragonFly as well.
Diffstat (limited to 'games/xworm')
-rw-r--r-- | games/xworm/distinfo | 4 | ||||
-rw-r--r-- | games/xworm/patches/patch-ab | 13 |
2 files changed, 9 insertions, 8 deletions
diff --git a/games/xworm/distinfo b/games/xworm/distinfo index 9c76ed99d57..21707af639c 100644 --- a/games/xworm/distinfo +++ b/games/xworm/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.3 2005/02/23 23:12:05 agc Exp $ +$NetBSD: distinfo,v 1.4 2005/12/29 20:27:14 joerg Exp $ SHA1 (xworm102.tar.gz) = 452eca230e2ced215bce4e6211e36430d0ec20d2 RMD160 (xworm102.tar.gz) = 57370a5fe48791512434024c5da2dd2c2f7a7d7a Size (xworm102.tar.gz) = 20415 bytes SHA1 (patch-aa) = afdc57c408d1659d20bbb6c73e507df28619a7c7 -SHA1 (patch-ab) = ed79deb1d7133f39d7e51e022eff685d1af42829 +SHA1 (patch-ab) = d5f67a435ec3ed96bb8a6b2ab5493b501a679016 diff --git a/games/xworm/patches/patch-ab b/games/xworm/patches/patch-ab index 639d57222f6..4aca8c66c6d 100644 --- a/games/xworm/patches/patch-ab +++ b/games/xworm/patches/patch-ab @@ -1,11 +1,12 @@ -$NetBSD: patch-ab,v 1.1.1.1 1998/11/04 21:20:50 garbled Exp $ ---- xworm.c.orig Wed May 7 09:25:57 1997 -+++ xworm.c Wed Nov 4 13:52:07 1998 +$NetBSD: patch-ab,v 1.2 2005/12/29 20:27:14 joerg Exp $ + +--- xworm.c.orig 1997-05-07 16:25:57.000000000 +0000 ++++ xworm.c @@ -3,13 +3,20 @@ #include <X11/Xlib.h> #include <X11/Xutil.h> -+#if defined(__FreeBSD__) || defined(__NetBSD__) ++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) +#include <sys/time.h> +#endif #include <time.h> @@ -25,7 +26,7 @@ $NetBSD: patch-ab,v 1.1.1.1 1998/11/04 21:20:50 garbled Exp $ #define maxQ 5000 /* max queue */ #define NCOLORS 15 /* number of colours */ -@@ -551,16 +558,24 @@ +@@ -551,16 +558,24 @@ void AllocColours(void){ colormap = DefaultColormap(display, screen); if (!XAllocColorCells(display, colormap, True, NULL, 0, pixels, npixels)) { fprintf(stderr, "failed to allocate all %d colours\n", NCOLORS); @@ -59,7 +60,7 @@ $NetBSD: patch-ab,v 1.1.1.1 1998/11/04 21:20:50 garbled Exp $ } Bool predproc (display,event,arg) -@@ -773,7 +788,7 @@ +@@ -773,7 +788,7 @@ float rnd(int x) { /* This routine retur void rgrid(void){ FILE *fpg; if ((fpg=fopen(gridfile,"rb")) == NULL) { |