summaryrefslogtreecommitdiff
path: root/mysys/my_create.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-08-22 01:45:07 +0300
committermonty@hundin.mysql.fi <>2001-08-22 01:45:07 +0300
commit733f865f54e297bf512f10ec0631342303164b25 (patch)
tree32f2629127dea884d1930817179e72d2076be756 /mysys/my_create.c
parent063a1a6557ad2c501f4da9a47e633fb191ee2e00 (diff)
downloadmariadb-git-733f865f54e297bf512f10ec0631342303164b25.tar.gz
Fixes for OS2.
Fix bug in isamlog Add argument types to function declarations.
Diffstat (limited to 'mysys/my_create.c')
-rw-r--r--mysys/my_create.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/my_create.c b/mysys/my_create.c
index ee5d9aa41f3..5a10b0fd8b5 100644
--- a/mysys/my_create.c
+++ b/mysys/my_create.c
@@ -20,7 +20,7 @@
#include <my_dir.h>
#include "mysys_err.h"
#include <errno.h>
-#if defined(MSDOS) || defined(__WIN__) || defined(__EMX__)
+#if defined(MSDOS) || defined(__WIN__) || defined(__EMX__) || defined(OS2)
#include <share.h>
#endif
@@ -48,7 +48,7 @@ File my_create(const char *FileName, int CreateFlags, int access_flags,
#elif defined(VMS)
fd = open((my_string) FileName, access_flags | O_CREAT, 0,
"ctx=stm","ctx=bin");
-#elif defined(MSDOS) || defined(__WIN__) || defined(__EMX__)
+#elif defined(MSDOS) || defined(__WIN__) || defined(__EMX__) || defined(OS2)
if (access_flags & O_SHARE)
fd = sopen((my_string) FileName, access_flags | O_CREAT | O_BINARY,
SH_DENYNO, MY_S_IREAD | MY_S_IWRITE);