|
From: | Earnie Boyd |
Subject: | Re: [Mingw-users] Re: More patch 2.5.9 hacking |
Date: | Sat, 25 Oct 2003 18:14:34 -0400 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130 |
Paul Eggert wrote:
"Eli Zaretskii" <address@hidden> 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>
[Prev in Thread] | Current Thread | [Next in Thread] |