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
int nchar;
struct timeval tv;
- extern int errno;
if ((i = ioctl((int) 0, FIONREAD, &nchar)))
{
int nchar;
int i;
- extern int errno;
-
-
if ((i = ioctl((int) 0, FIONREAD, &nchar)))
{
perror("FIONREAD");