summaryrefslogtreecommitdiff
path: root/games/gnuchess4/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2005-12-19 17:29:34 +0000
committerjoerg <joerg>2005-12-19 17:29:34 +0000
commit06f3a433771767fdde49c60a004077e9c7e421cc (patch)
treee42ebe21dff8c179a6d934e82af0ff7b9ac019ed /games/gnuchess4/patches
parent7942d348bdbb543f9c73f804837747d2d4b0738b (diff)
downloadpkgsrc-06f3a433771767fdde49c60a004077e9c7e421cc.tar.gz
Fix errno.
Diffstat (limited to 'games/gnuchess4/patches')
-rw-r--r--games/gnuchess4/patches/patch-aa28
-rw-r--r--games/gnuchess4/patches/patch-ab34
2 files changed, 55 insertions, 7 deletions
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 (">");