diff options
author | joerg <joerg@pkgsrc.org> | 2005-12-19 17:29:34 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-12-19 17:29:34 +0000 |
commit | faaa6c0c4ce976493042b32197998f941d52e818 (patch) | |
tree | e42ebe21dff8c179a6d934e82af0ff7b9ac019ed /games | |
parent | bf5fe6c34ae56781d2ed7f438e645d2650d261de (diff) | |
download | pkgsrc-faaa6c0c4ce976493042b32197998f941d52e818.tar.gz |
Fix errno.
Diffstat (limited to 'games')
-rw-r--r-- | games/gnuchess4/distinfo | 6 | ||||
-rw-r--r-- | games/gnuchess4/patches/patch-aa | 28 | ||||
-rw-r--r-- | games/gnuchess4/patches/patch-ab | 34 |
3 files changed, 58 insertions, 10 deletions
diff --git a/games/gnuchess4/distinfo b/games/gnuchess4/distinfo index fc52812631f..a33547aa026 100644 --- a/games/gnuchess4/distinfo +++ b/games/gnuchess4/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.5 2005/11/03 22:01:10 rillig Exp $ +$NetBSD: distinfo,v 1.6 2005/12/19 17:29:34 joerg Exp $ SHA1 (gnuchess-4.0.pl80.tar.gz) = 0c581be2e7b6b17524e288e105a468a7ca328c8b RMD160 (gnuchess-4.0.pl80.tar.gz) = 889510f73c3e5143fc312c010e8324e68c11dcdc Size (gnuchess-4.0.pl80.tar.gz) = 1493280 bytes -SHA1 (patch-aa) = 0528b70c06a07ba17093bce467446899b2eaf2fd -SHA1 (patch-ab) = 853b42df0871471047dddfb102841ad7d6e68499 +SHA1 (patch-aa) = 01c1e61f491199bdf8c70d72712ab5ec41d85ab2 +SHA1 (patch-ab) = dd15478800a18d5a43b8f03b3f3b57b09162f4f8 SHA1 (patch-ac) = 2d2ad394545b4eb4285389642c84872d4e0d9a25 SHA1 (patch-ad) = 1fc8df5f7b34fd82fb43de71cdaf01ff5f72d51a SHA1 (patch-ae) = 31ed0b133d10457b89eaa09e56cdbd5b3a1b382b diff --git a/games/gnuchess4/patches/patch-aa b/games/gnuchess4/patches/patch-aa index 1b065cd48b4..237702e7fb7 100644 --- a/games/gnuchess4/patches/patch-aa +++ b/games/gnuchess4/patches/patch-aa @@ -1,8 +1,16 @@ -$NetBSD: patch-aa,v 1.3 2005/11/03 22:01:10 rillig Exp $ +$NetBSD: patch-aa,v 1.4 2005/12/19 17:29:35 joerg Exp $ --- src/dspcom.c.orig 1998-09-28 01:41:19.000000000 -0500 +++ src/dspcom.c -@@ -1099,7 +1099,7 @@ InputCommand (void) +@@ -49,6 +49,7 @@ CHAR *InPtr; + #if !defined(AMIGADOS) && !defined(Think_C) && !defined(WIN32) + #include <unistd.h> + #endif ++#include <errno.h> + + #if defined(sun) && defined(sparc) && defined(svr4) + #include <sys/filio.h> +@@ -1099,7 +1100,7 @@ InputCommand (void) #ifdef NONDSP s[0] = sx[0] = '\0'; while (!sx[0]) @@ -11,3 +19,19 @@ $NetBSD: patch-aa,v 1.3 2005/11/03 22:01:10 rillig Exp $ #else fflush (stdout); #ifdef MSDOS +@@ -1444,7 +1445,6 @@ ElapsedTime (SHORT iop) + struct timeval tv; + #ifndef MSDOS + int nchar; +- extern int errno; + int i; + #ifdef FIONREAD + if (i = ioctl ((int) 0, FIONREAD, &nchar)) +@@ -1525,7 +1525,6 @@ ElapsedTime (SHORT iop) + #else /*!WIN32*/ + #if !defined(MSDOS) + int nchar; +- extern int errno; + int i; + #ifdef FIONREAD + if (i = ioctl ((int) 0, FIONREAD, &nchar)) diff --git a/games/gnuchess4/patches/patch-ab b/games/gnuchess4/patches/patch-ab index 7e26f8cd455..21db2d1c9f9 100644 --- a/games/gnuchess4/patches/patch-ab +++ b/games/gnuchess4/patches/patch-ab @@ -1,8 +1,32 @@ -$NetBSD: patch-ab,v 1.2 2005/11/03 22:01:10 rillig Exp $ +$NetBSD: patch-ab,v 1.3 2005/12/19 17:29:35 joerg Exp $ --- src/gnuan.c.orig Sat Apr 3 05:58:53 1999 +++ src/gnuan.c Wed Nov 17 23:57:25 1999 -@@ -1348,12 +1348,12 @@ +@@ -67,6 +67,7 @@ + + + #include <ctype.h> ++#include <errno.h> + #include <signal.h> + #include <fcntl.h> + #ifdef MSDOS +@@ -626,7 +627,6 @@ ElapsedTime (SHORT iop) + + #ifndef MSDOS + int nchar; +- extern int errno; + int i; + + #ifdef FIONREAD +@@ -683,7 +683,6 @@ ElapsedTime (SHORT iop) + { + #ifndef MSDOS + int nchar; +- extern int errno; + int i; + + #ifdef FIONREAD +@@ -1348,12 +1347,12 @@ InputCommand (void) fpout = stderr; fprintf (fpout, "Input the file with the algebraic moves of the game.\n"); fflush (fpout); @@ -17,7 +41,7 @@ $NetBSD: patch-ab,v 1.2 2005/11/03 22:01:10 rillig Exp $ search_depth = atoi (inbuf); if (search_depth < 0) { -@@ -1369,7 +1369,7 @@ +@@ -1369,7 +1368,7 @@ InputCommand (void) do { fprintf (fpout, "Input the maximum number of minutes per move you want to use.\n"); @@ -26,7 +50,7 @@ $NetBSD: patch-ab,v 1.2 2005/11/03 22:01:10 rillig Exp $ max_minutes = atoi (inbuf); if (max_minutes < 0) { -@@ -1379,7 +1379,7 @@ +@@ -1379,7 +1378,7 @@ InputCommand (void) } while ((max_minutes + max_seconds) < 1); fprintf (fpout, "Post the search results(y/n).\n"); @@ -35,7 +59,7 @@ $NetBSD: patch-ab,v 1.2 2005/11/03 22:01:10 rillig Exp $ if (inbuf[0] == 'y') flag.post = true; else -@@ -1559,7 +1559,8 @@ +@@ -1559,7 +1558,8 @@ InputCommand (void) while (true) { printf (">"); |