[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patches for gettext-0.11.5, and question about __mkdir
From: |
Alexandre Duret-Lutz |
Subject: |
Re: patches for gettext-0.11.5, and question about __mkdir |
Date: |
Thu, 09 Jan 2003 19:04:42 +0100 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) |
Happy new year,
>>> "Bruno" == Bruno Haible <address@hidden> writes:
[Amores Perros:]
>> I did not successfully compile, however, because I have a problem
>> that the mkdir the compiler is finding only takes on argument.
>> This is being called from the __mkdir macro in lib/mkdtemp.h.
>> I don't know if this is something you're willing to work around,
>> or if you have any suggestions ?
Bruno> Fix mingw32. Win32 has no mkdir() function, it has only
Bruno> CreateDirectory. Therefore if mingw32 offers an mkdir()
Bruno> function, it must be for POSIX compatibility, I
Bruno> assume. But POSIX mkdir() takes 2 arguments, pathname
Bruno> and mode. => mingw32 needs to be fixed.
This is very simple to work around, though. Here is the macro
I've have been using for a couple of years. As noted in the
comments at the end there might be room for improvements;
however the default is to use two arguments so it's certainly
not worse than no check at all.
--
Alexandre Duret-Lutz
mkdir.m4
Description: AC_FUNC_MKDIR