diff --git a/src/fd_control.c b/src/fd_control.c index cd490ce5545bd70f2f16d4ea356e14e112e404ec..45648da40b2237ddb0c59ace6cef4f73e351a89a 100644 --- a/src/fd_control.c +++ b/src/fd_control.c @@ -10,7 +10,7 @@ #include "pike_error.h" #include "fdlib.h" -RCSID("$Id: fd_control.c,v 1.42 2002/09/02 16:49:16 grubba Exp $"); +RCSID("$Id: fd_control.c,v 1.43 2002/09/03 09:50:36 grubba Exp $"); #else /* TESTING */ @@ -274,7 +274,7 @@ int main() res = read(tmp[0],foo,999); e = errno; alarm(0); - if ((res >= 0) || (e != AGAIN)) { + if ((res >= 0) || (e != EAGAIN)) { fprintf(stderr, "Unexpected behaviour of nonblocking read() res:%d, errno:%d\n", res, e);