From 70b21bf3f94bcb6892873864275fe1c450615f64 Mon Sep 17 00:00:00 2001 From: Ian Beckwith Date: Mon, 19 Apr 2010 16:32:32 +0100 Subject: [PATCH] mkdir: Make it work on mingw64. (cherry picked from commit b969309b853c939f04cbae890abad73a8a595067) --- ChangeLog | 6 ++++++ lib/sys_stat.in.h | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fc0360259..667d7b087 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 Jim Meyering maint.mk: correct a diagnostic diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h index 82792e452..3496a199a 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.11.0