First, you might try adding -ansi to the gcc options. Don't know if it makes a difference, but it can't hurt. You might try messing around with the order of the include files in Posix.h. I have it including sys/types.h before sys/stat.h. Can't remember offhand if that is how it originally is, or if I changed it to be that way. --Mark