Sorry, I don't have time to debug this. The uname -a output for the valid one is CYGWIN_NT-4.0 DU216771 1.3.3(0.39/3/2) 2001-05-30 11:42 i686 unknown #include <stdlib.h> #include <sys/stat.h> int main ( void ) { struct stat *fs; stat("/dev/null", fs); }