about summary refs log tree commit diff
path: root/pm_config.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'pm_config.in.h')
-rw-r--r--pm_config.in.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pm_config.in.h b/pm_config.in.h
index 25551815..bb3bf381 100644
--- a/pm_config.in.h
+++ b/pm_config.in.h
@@ -273,3 +273,10 @@ typedef long int pm_filepos;
 
 typedef int qsort_comparison_fn(const void *, const void *);
     /* A compare function to pass to <stdlib.h>'s qsort() */
+
+#if defined(WIN32) && !defined(__CYGWIN__)
+  #define pm_mkdir(dir, perm) _mkdir(dir)
+#else
+  #define pm_mkdir(dir, perm) mkdir(dir, perm) 
+#endif
+