From b969309b853c939f04cbae890abad73a8a595067 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 11 Apr 2010 00:25:21 +0200 Subject: [PATCH] mkdir: Make it work on mingw64. --- ChangeLog | 6 ++++++ lib/sys_stat.in.h | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index dd0264baaf..16bf6fa834 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-04-10 Bruno Haible + + mkdir: Make it work on mingw64. + * lib/sys_stat.in.h: Include together with . + Reported by Roman Donchenko (Роман Донченко) . + 2010-04-10 Bruno Haible Don't override improved macro from newer autoconf. diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index 82792e452f..3496a199a7 100644 --- a/lib/sys_stat.in.h +++ b/lib/sys_stat.in.h @@ -56,7 +56,8 @@ /* Before doing "#define mkdir rpl_mkdir" below, we need to include all headers that may declare mkdir(). */ #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ -# include +# include /* mingw32, mingw64 */ +# include /* mingw64 */ #endif #ifndef S_IFMT @@ -455,7 +456,8 @@ _GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); #else /* mingw's _mkdir() function has 1 argument, but we pass 2 arguments. Additionally, it declares _mkdir (and depending on compile flags, an - alias mkdir), only in the nonstandard , which is included above. */ + alias mkdir), only in the nonstandard includes and , + which are included above. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ static inline int -- 2.30.2