projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify my *-tests modules.
[gnulib.git]
/
lib
/
mkdtemp.c
diff --git
a/lib/mkdtemp.c
b/lib/mkdtemp.c
index
2f46c18
..
469cf47
100644
(file)
--- 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,
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., 5
9 Temple Place - Suite 330, Boston, MA 02111-1307
, USA. */
+ Inc., 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301
, USA. */
/* Extracted from misc/mkdtemp.c and sysdeps/posix/tempname.c. */
/* Extracted from misc/mkdtemp.c and sysdeps/posix/tempname.c. */
@@
-85,6
+85,12
@@
# define S_IXUSR 00100
#endif
# 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
#if !_LIBC
# define __getpid getpid
# define __gettimeofday gettimeofday