X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmkdtemp.c;h=ac66ae29d424c5e713cf8bf83daec2a7e3ce26bc;hb=c3edfc411c57b3bd4f12a09674f143651990c1f2;hp=8434acf9cba0eeb775e13a58658c849428f470ab;hpb=717fa45711884ed1fdd5c92c535b7b5ccb6222c2;p=gnulib.git diff --git a/lib/mkdtemp.c b/lib/mkdtemp.c index 8434acf9c..ac66ae29d 100644 --- a/lib/mkdtemp.c +++ b/lib/mkdtemp.c @@ -1,20 +1,19 @@ /* Copyright (C) 1999, 2001-2003 Free Software Foundation, Inc. This file is part of the GNU C Library. - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. - The GNU C Library is distributed in the hope that it will be useful, + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - You should have received a copy of the GNU Library General Public - License along with the GNU C Library; see the file COPYING.LIB. If not, - write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ + 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. */ /* Extracted from misc/mkdtemp.c and sysdeps/posix/tempname.c. */ @@ -86,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