summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2019-07-19 10:08:30 +1000
committerTony Cook <tony@develop-help.com>2019-07-19 10:08:30 +1000
commit52bd4b1005ce2b1499ca6df62b6d09e45880a467 (patch)
treeb8e30ea6b0de31feb8bee010c5f832d825d216aa /win32/win32.h
parent973ae08839a3c974ff88014594ecf63cdb20d5e8 (diff)
downloadperl-52bd4b1005ce2b1499ca6df62b6d09e45880a467.tar.gz
(perl #134221) MSVC doesn't define O_ACCMODE
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 6db4dc0536..6311115b0a 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -735,5 +735,9 @@ DllExport void *win32_signal_context(void);
#define Win_GetModuleFileName GetModuleFileName
#define Win_CreateSemaphore CreateSemaphore
+#if defined(PERL_CORE) && !defined(O_ACCMODE)
+# define O_ACCMODE (O_RDWR | O_WRONLY | O_RDONLY)
+#endif
+
#endif /* _INC_WIN32_PERL5 */