summaryrefslogtreecommitdiff
path: root/mysys/my_mkdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/my_mkdir.c')
-rw-r--r--mysys/my_mkdir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/my_mkdir.c b/mysys/my_mkdir.c
index 773cd26cb03..3685312132c 100644
--- a/mysys/my_mkdir.c
+++ b/mysys/my_mkdir.c
@@ -28,8 +28,8 @@ int my_mkdir(const char *dir, int Flags, myf MyFlags)
DBUG_ENTER("my_dir");
DBUG_PRINT("enter",("dir: %s",dir));
-#ifdef __WIN__
- if (mkdir(dir))
+#if defined(__WIN__) || defined(OS2)
+ if (mkdir((char*) dir))
#else
if (mkdir((char*) dir, Flags & my_umask_dir))
#endif