Do not attempt to outguess system headers by (re)defining errno.
authorYann Dirson <ydirson@altern.org>
Thu, 17 Jan 2008 23:18:35 +0000 (00:18 +0100)
committerYann Dirson <ydirson@free.fr>
Sun, 29 Sep 2013 13:39:24 +0000 (15:39 +0200)
commit5d0aa931eb2fe22d99277b0fbf998b4fa18f4231
treec3be6e026f0b3286bc043d818a9ab382c3781fc7
parentf1233c24bb1ad5c8b0971c4bc35404c4d6ca503b
Do not attempt to outguess system headers by (re)defining errno.

Recent glibc define error as a cpp macro expanding to a function
call.  Thus, "extern int errno" should cause a link-time undefined
symbol when errno.h is not included.  Here it is, and gcc complains
with the following cryptic warning:

../../gnushogi/sysdeps.c: In function 'ElapsedTime_FIONREAD':
../../gnushogi/sysdeps.c:97: warning: function declaration isn't a prototype
gnushogi/sysdeps.c