From 53e165716d20076610295e568b1c4b9f9108be19 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 9 Dec 2008 16:15:18 +0100 Subject: [PATCH] configure: Add a wrapper macro for mkdir on Windows. --- configure | 2 ++ configure.ac | 1 + dlls/shell32/xdg.c | 1 + include/config.h.in | 3 +++ include/wine/port.h | 4 ++++ 5 files changed, 11 insertions(+) diff --git a/configure b/configure index c8bb66b5f8..939e20d79e 100755 --- a/configure +++ b/configure @@ -17910,9 +17910,11 @@ esac + for ac_func in \ + _mkdir \ _pclose \ _popen \ _snprintf \ diff --git a/configure.ac b/configure.ac index 0d5c530b2b..2540c0d948 100644 --- a/configure.ac +++ b/configure.ac @@ -1370,6 +1370,7 @@ esac dnl **** Check for functions **** AC_CHECK_FUNCS(\ + _mkdir \ _pclose \ _popen \ _snprintf \ diff --git a/dlls/shell32/xdg.c b/dlls/shell32/xdg.c index d7f84abda7..0cb4272c88 100644 --- a/dlls/shell32/xdg.c +++ b/dlls/shell32/xdg.c @@ -46,6 +46,7 @@ */ #include "config.h" +#include "wine/port.h" #include #include diff --git a/include/config.h.in b/include/config.h.in index 8f2c78e6ae..dd8c5ce540 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -999,6 +999,9 @@ /* Define if Xrender has the XRenderSetPictureTransform function */ #undef HAVE_XRENDERSETPICTURETRANSFORM +/* Define to 1 if you have the `_mkdir' function. */ +#undef HAVE__MKDIR + /* Define to 1 if you have the `_pclose' function. */ #undef HAVE__PCLOSE diff --git a/include/wine/port.h b/include/wine/port.h index 68ded3d5ac..df341743fe 100644 --- a/include/wine/port.h +++ b/include/wine/port.h @@ -114,6 +114,10 @@ struct statvfs #define RTLD_GLOBAL 0x100 #endif +#ifdef HAVE__MKDIR +#define mkdir(path,mode) _mkdir(path) +#endif + #if !defined(HAVE_FTRUNCATE) && defined(HAVE_CHSIZE) #define ftruncate chsize #endif -- 2.33.8