> Where does errno get declared in your system's headers?
The ANSI C standard says errno is declared in <errno.h>. Since ANSI C
also says that the standard header files are independent, it is poor
form for your system to have included <errno.h> via <stdlib.h>.
(Yeah, since you've already added <errno.h> this is a bit pedantic.)
Ciao,
Giles