Isn't "#define _PWD_H_" at the wrong place? kdewin32/include/mingw/pwd.h: #ifndef _PWD_H_ #include <sys/types.h> #ifdef __cplusplus extern "C" { #endif #define _PWD_H_