1
commit 15c08f418cbc6c5dd6d84e90efef566be4087130
2
Author: Yann Dirson <ydirson@altern.org>
3
Date: Fri Jan 18 00:18:35 2008 +0100
5
Do not attempt to outguess system headers by (re)defining errno.
7
Recent glibc define error as a cpp macro expanding to a function
8
call. Thus, "extern int errno" should cause a link-time undefined
9
symbol when errno.h is not included. Here it is, and gcc complains
10
with the following cryptic warning:
12
../../gnushogi/sysdeps.c: In function 'ElapsedTime_FIONREAD':
13
../../gnushogi/sysdeps.c:97: warning: function declaration isn't a prototype
15
diff --git a/gnushogi/sysdeps.c b/gnushogi/sysdeps.c
16
index 9752e96..fa7ef87 100644
17
--- a/gnushogi/sysdeps.c
18
+++ b/gnushogi/sysdeps.c
19
@@ -94,7 +94,6 @@ ElapsedTime_FIONREAD(ElapsedTime_mode iop)
25
if ((i = ioctl((int) 0, FIONREAD, &nchar)))
27
@@ -230,9 +229,6 @@ ElapsedTime_FIONREAD(ElapsedTime_mode iop)
34
if ((i = ioctl((int) 0, FIONREAD, &nchar)))