X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmkdtemp.c;h=469cf4718641dce93fcff8358e3d7e539c381fae;hb=fb84631f1ec8e82d252cbad0b5b7f83a98e74ba9;hp=2f46c18edfadc8ef6538f268fcd750ea65eae6ca;hpb=757bd39e4b07efaefaef3ef11027b7b7b40f5911;p=gnulib.git diff --git a/lib/mkdtemp.c b/lib/mkdtemp.c index 2f46c18ed..469cf4718 100644 --- a/lib/mkdtemp.c +++ b/lib/mkdtemp.c @@ -13,7 +13,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Extracted from misc/mkdtemp.c and sysdeps/posix/tempname.c. */ @@ -85,6 +85,12 @@ # define S_IXUSR 00100 #endif +#ifdef __MINGW32__ +/* mingw's mkdir() function has 1 argument, but we pass 2 arguments. + Therefore we have to disable the argument count checking. */ +# define mkdir ((int (*)()) mkdir) +#endif + #if !_LIBC # define __getpid getpid # define __gettimeofday gettimeofday