From: Earnie B. <ea...@us...> - 2003-10-25 22:18:36
|
Paul Eggert wrote: > "Eli Zaretskii" <el...@el...> writes: > > >>This seems to indicate that some header where you have a prototype of >>mkdir (which on your system takes 1 argument) was seen by the >>compiler _after_ config.h, and thus it was processed as the prototype >>of fixed_mkdir. > > > Yes; the header is <unistd.h>, which apparently includes <io.h>. > > Perhaps we can work around the problem on mingw by defining our own > unistd.h, which looks like this: > > #include "/path/to/mingw's/unistd.h" > #define mkdir(d, m) ((mkdir) (d)) > > That way, we wouldn't have to modify the existing source code or .m4 > files at all. > Well, I've been contemplating modifying MinGW's unistd.h anyway for this. Seems the right thing to do since unistd.h is a convenience MinGW add on for UNIX programs anyway. Manu, since you started this, do you want to do the honors of patching the MinGW unistd.h file? You should use the _mkdir MS version in the body of the definition. Earnie -- http://www.mingw.org Powered by SourceForge <http://sourceforge.net/projects/mingw> |