summaryrefslogtreecommitdiff
path: root/Python/import.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-12-06 12:48:53 +0000
committerMartin v. Löwis <martin@v.loewis.de>2002-12-06 12:48:53 +0000
commit79acb9edfa893b5072350c82fd0645d023b13b03 (patch)
tree7b9417700c6942124614f4639bfbea8ff5c68b9e /Python/import.c
parent468742878f53bb0a9061e6b167b3150f341fdf1c (diff)
downloadcpython-git-79acb9edfa893b5072350c82fd0645d023b13b03.tar.gz
Patch #614055: Support OpenVMS.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c
index 4d0cdbb9f9..d921d74405 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -693,8 +693,11 @@ open_exclusive(char *filename)
#ifdef O_BINARY
|O_BINARY /* necessary for Windows */
#endif
-
- , 0666);
+#ifdef __VMS
+ , 0666, "ctxt=bin", "shr=nil");
+#else
+ , 0666);
+#endif
if (fd < 0)
return NULL;
return fdopen(fd, "wb");