summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjoerg <joerg>2006-01-12 23:59:02 +0000
committerjoerg <joerg>2006-01-12 23:59:02 +0000
commit15a4b009e00044a1cc2c2c8cb121089b1334181a (patch)
tree8701269764b8908844eef4c939db85c9ef4034b6 /games
parent09c30a2b2a2a83f0ff3ee7c0dd119b0ccc7ccece (diff)
downloadpkgsrc-15a4b009e00044a1cc2c2c8cb121089b1334181a.tar.gz
Fix errno.
Diffstat (limited to 'games')
-rw-r--r--games/xdoom/distinfo8
-rw-r--r--games/xdoom/patches/patch-ah30
-rw-r--r--games/xdoom/patches/patch-ai26
-rw-r--r--games/xdoom/patches/patch-ay19
-rw-r--r--games/xfreecell/distinfo3
-rw-r--r--games/xfreecell/patches/patch-ae19
6 files changed, 68 insertions, 37 deletions
diff --git a/games/xdoom/distinfo b/games/xdoom/distinfo
index 2318bb26947..f5ac1547b92 100644
--- a/games/xdoom/distinfo
+++ b/games/xdoom/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2005/02/24 23:07:34 minskim Exp $
+$NetBSD: distinfo,v 1.14 2006/01/13 00:04:16 joerg Exp $
SHA1 (doomsrc.zip) = ffd07e0bd95b7c6ba0cd003fb6ff5ebd535d6f99
RMD160 (doomsrc.zip) = c88e57b3cc72ca8bbfacbe138f8a3c69a13bf2e1
@@ -13,8 +13,8 @@ SHA1 (patch-ad) = cb8e892e9fa561960da46c0bfea61bcf65246458
SHA1 (patch-ae) = 5bba08b0ae36e3a9b9b48b1dba9570035cf1a54d
SHA1 (patch-af) = 19367ee3112bfd0e5c054749347e642e6d0ff2ee
SHA1 (patch-ag) = accb03154ee6fcd8771b5cd782bb4f4fb0c96b1b
-SHA1 (patch-ah) = 8ce7eff703079ca435bcffd125483285d8bade5c
-SHA1 (patch-ai) = 9759962516af3bd15474c03350f115fda6d36468
+SHA1 (patch-ah) = d5ab2fd3f5593876d5c78e2a18ac909ec56ac8cf
+SHA1 (patch-ai) = 05d2abc579d970fec6c0776e953d6ad13946b9b6
SHA1 (patch-aj) = 23e3b35b8072752a9d3fcaa1913f390cf6bd5146
SHA1 (patch-ak) = 7ac753f505c5becc2ce26de209723fc464096cdc
SHA1 (patch-al) = a3c5b2ae0a820010339c06655f53778e5edfd498
@@ -30,7 +30,7 @@ SHA1 (patch-au) = ce66a255347aa3ec6ec0c7826e352e5b53a0e69d
SHA1 (patch-av) = 494568bf3298195523c689125ad664d59d16e901
SHA1 (patch-aw) = 431b990ad5bcf32fc5152c4b4331ce2bc85aba8b
SHA1 (patch-ax) = 8aab1f5d3e6f0fc08bd673d37fb19c600aa0f60b
-SHA1 (patch-ay) = 978e1aeef4239abd752e0ec4404a3819ee6339af
+SHA1 (patch-ay) = 525fe394abcb0833c7595d3bc0559afcc7319f3b
SHA1 (patch-az) = 48690eebd65de95b7ce4fd73390b46ffd6a58085
SHA1 (patch-ba) = d8e41ed9d277145cd776ca5dc18e1c82cbefc8b7
SHA1 (patch-bb) = 28dbedb6209466f5b9ad226e2a5583c3881acae1
diff --git a/games/xdoom/patches/patch-ah b/games/xdoom/patches/patch-ah
index dcb71542f34..1117d7e2e3f 100644
--- a/games/xdoom/patches/patch-ah
+++ b/games/xdoom/patches/patch-ah
@@ -1,10 +1,12 @@
-$NetBSD: patch-ah,v 1.2 2000/02/03 16:01:15 abs Exp $
+$NetBSD: patch-ah,v 1.3 2006/01/13 00:04:16 joerg Exp $
--- linuxdoom-1.10/i_sound.c.orig Mon Dec 22 19:57:15 1997
+++ linuxdoom-1.10/i_sound.c Thu Feb 3 02:56:08 2000
-@@ -41,8 +41,11 @@
- #include <unistd.h>
- #include <sys/ioctl.h>
+@@ -26,2 +26,3 @@ rcsid[] = "$Id: i_unix.c,v 1.5 1997/02/0
+
++#include <errno.h>
+ #include <stdio.h>
+@@ -43,4 +44,7 @@ rcsid[] = "$Id: i_unix.c,v 1.5 1997/02/0
+#ifdef LINUX
// Linux voxware output.
@@ -12,11 +14,11 @@ $NetBSD: patch-ah,v 1.2 2000/02/03 16:01:15 abs Exp $
+#endif
+
- // Timer stuff. Experimental.
- #include <time.h>
-@@ -482,8 +485,12 @@
- #ifdef SNDSERV
- if (sndserver)
+@@ -165,3 +169,2 @@ myioctl
+ int rc;
+- extern int errno;
+
+@@ -484,4 +487,8 @@ I_StartSound
{
- fprintf(sndserver, "p%2.2x%2.2x%2.2x%2.2x\n", id, pitch, vol, sep);
- fflush(sndserver);
@@ -27,11 +29,7 @@ $NetBSD: patch-ah,v 1.2 2000/02/03 16:01:15 abs Exp $
+ sndserver = 0;
+ }
}
- // warning: control reaches end of non-void function.
- return id;
-@@ -745,13 +752,25 @@
- getenv("DOOMWADDIR"),
- sndserver_filename);
+@@ -747,6 +754,16 @@ I_InitSound()
else
- sprintf(buffer, "%s", sndserver_filename);
+#ifdef INSTALL_PREFIX
@@ -50,10 +48,8 @@ $NetBSD: patch-ah,v 1.2 2000/02/03 16:01:15 abs Exp $
- if ( !access(buffer, X_OK) )
+ if (!access(buffer, X_OK) )
{
- strcat(buffer, " -quiet");
+@@ -754,2 +771,4 @@ I_InitSound()
sndserver = popen(buffer, "w");
+ /* Don't die with SIGPIPE if the sndserver has problems */
+ signal(SIGPIPE, (void (*)(int)) SIG_IGN);
}
- else
- fprintf(stderr, "Could not start sound server [%s]\n", buffer);
diff --git a/games/xdoom/patches/patch-ai b/games/xdoom/patches/patch-ai
index 2df53ab194d..20c2fc55e87 100644
--- a/games/xdoom/patches/patch-ai
+++ b/games/xdoom/patches/patch-ai
@@ -1,8 +1,8 @@
-$NetBSD: patch-ai,v 1.3 2002/08/22 05:08:31 mycroft Exp $
+$NetBSD: patch-ai,v 1.4 2006/01/13 00:04:16 joerg Exp $
--- linuxdoom-1.10/i_video.c.orig Mon Dec 22 20:39:01 1997
+++ linuxdoom-1.10/i_video.c Thu Aug 22 04:42:18 2002
-@@ -36,7 +36,7 @@
+@@ -36,7 +36,7 @@ rcsid[] = "$Id: i_x.c,v 1.6 1997/02/03 2
#include <X11/extensions/XShm.h>
// Had to dig up XShm.c for this one.
// It is in the libXext, but not in the XFree86 headers.
@@ -11,7 +11,7 @@ $NetBSD: patch-ai,v 1.3 2002/08/22 05:08:31 mycroft Exp $
int XShmGetEventBase( Display* dpy ); // problems with g++?
#endif
-@@ -46,13 +46,14 @@
+@@ -46,13 +46,14 @@ int XShmGetEventBase( Display* dpy ); //
#include <sys/socket.h>
#include <netinet/in.h>
@@ -27,7 +27,7 @@ $NetBSD: patch-ai,v 1.3 2002/08/22 05:08:31 mycroft Exp $
#include "d_main.h"
#include "doomdef.h"
-@@ -164,15 +165,20 @@
+@@ -164,15 +165,20 @@ int xlatekey(void)
void I_ShutdownGraphics(void)
{
// Detach from X server
@@ -53,7 +53,15 @@ $NetBSD: patch-ai,v 1.3 2002/08/22 05:08:31 mycroft Exp $
}
-@@ -685,8 +691,7 @@
+@@ -666,7 +672,6 @@ void grabsharedmemory(int size)
+ id = shmget((key_t)key, size, IPC_CREAT|0777);
+ if (id==-1)
+ {
+- extern int errno;
+ fprintf(stderr, "errno=%d\n", errno);
+ I_Error("Could not get any shared memory");
+ }
+@@ -685,8 +690,7 @@ void grabsharedmemory(int size)
// attach to the shared memory segment
image->data = X_shminfo.shmaddr = shmat(id, 0, 0);
@@ -63,7 +71,7 @@ $NetBSD: patch-ai,v 1.3 2002/08/22 05:08:31 mycroft Exp $
}
void I_InitGraphics(void)
-@@ -986,13 +991,13 @@
+@@ -986,13 +990,13 @@ Expand4
{
fourpixels = lineptr[0];
@@ -79,7 +87,7 @@ $NetBSD: patch-ai,v 1.3 2002/08/22 05:08:31 mycroft Exp $
xline[1] = dpixel;
xline[161] = dpixel;
xline[321] = dpixel;
-@@ -1000,13 +1005,13 @@
+@@ -1000,13 +1004,13 @@ Expand4
fourpixels = lineptr[1];
@@ -95,7 +103,7 @@ $NetBSD: patch-ai,v 1.3 2002/08/22 05:08:31 mycroft Exp $
xline[3] = dpixel;
xline[163] = dpixel;
xline[323] = dpixel;
-@@ -1014,13 +1019,13 @@
+@@ -1014,13 +1018,13 @@ Expand4
fourpixels = lineptr[2];
@@ -111,7 +119,7 @@ $NetBSD: patch-ai,v 1.3 2002/08/22 05:08:31 mycroft Exp $
xline[5] = dpixel;
xline[165] = dpixel;
xline[325] = dpixel;
-@@ -1028,13 +1033,13 @@
+@@ -1028,13 +1032,13 @@ Expand4
fourpixels = lineptr[3];
diff --git a/games/xdoom/patches/patch-ay b/games/xdoom/patches/patch-ay
index 64f500753c5..2edd4884fcc 100644
--- a/games/xdoom/patches/patch-ay
+++ b/games/xdoom/patches/patch-ay
@@ -1,8 +1,12 @@
-$NetBSD: patch-ay,v 1.2 2005/02/24 23:04:31 minskim Exp $
+$NetBSD: patch-ay,v 1.3 2006/01/13 00:04:16 joerg Exp $
--- sndserv/linux.c.orig Sun Jan 26 07:45:01 1997
+++ sndserv/linux.c Thu Feb 3 01:34:05 2000
-@@ -39,11 +39,14 @@
+@@ -36,13 +36,17 @@ static const char rcsid[] = "$Id: linux.
+
+
++#include <errno.h>
+ #include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
@@ -17,9 +21,13 @@ $NetBSD: patch-ay,v 1.2 2005/02/24 23:04:31 minskim Exp $
+
int audio_fd;
- void
-@@ -76,9 +79,12 @@
-
+@@ -54,5 +58,4 @@ myioctl
+ {
+ int rc;
+- extern int errno;
+
+ rc = ioctl(fd, command, arg);
+@@ -77,7 +80,10 @@ I_InitSound
int i;
- audio_fd = open("/dev/dsp", O_WRONLY);
@@ -32,4 +40,3 @@ $NetBSD: patch-ay,v 1.2 2005/02/24 23:04:31 minskim Exp $
+ }
- i = 11 | (2<<16);
diff --git a/games/xfreecell/distinfo b/games/xfreecell/distinfo
index 351ebee0dc7..c0d8d1a414a 100644
--- a/games/xfreecell/distinfo
+++ b/games/xfreecell/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2005/02/23 23:12:04 agc Exp $
+$NetBSD: distinfo,v 1.7 2006/01/12 23:59:02 joerg Exp $
SHA1 (xfreecell-1.0.5b.tgz) = b0453b09ea2211822a5f03f532097c9eb14db2a6
RMD160 (xfreecell-1.0.5b.tgz) = 2629217bf29734bb25b30ca8aaec62ae19d0ff6f
@@ -7,3 +7,4 @@ SHA1 (patch-aa) = 6fde8f98f3587fcd07b91e517d08c268f9ee4e47
SHA1 (patch-ab) = 74326c5b4e731a32a404210cdc13b87a5b15119a
SHA1 (patch-ac) = 4fcb28840a4619c8ceb06dd86ffea351d1b8a2c5
SHA1 (patch-ad) = ab39728f9cb2f9cfb8b55c87185546e93ae5a231
+SHA1 (patch-ae) = 88a9048924d083c7903501302e224df5897c6838
diff --git a/games/xfreecell/patches/patch-ae b/games/xfreecell/patches/patch-ae
new file mode 100644
index 00000000000..cbb70e5bb2a
--- /dev/null
+++ b/games/xfreecell/patches/patch-ae
@@ -0,0 +1,19 @@
+$NetBSD: patch-ae,v 1.1 2006/01/12 23:59:02 joerg Exp $
+
+--- subwindows.cpp.orig 2006-01-12 23:55:23.000000000 +0000
++++ subwindows.cpp
+@@ -1,5 +1,6 @@
+ #include <sys/stat.h>
+ #include <sys/types.h>
++#include <errno.h>
+ #include <fcntl.h>
+ #include <dirent.h>
+ #include <unistd.h>
+@@ -62,7 +63,6 @@ void QueryWindow::waitForEvent()
+ }
+
+ //Score
+-extern int errno;
+
+ const int winScore = 10;
+ const int defeatScore = 10;