diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-12-06 12:48:53 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-12-06 12:48:53 +0000 |
commit | 79acb9edfa893b5072350c82fd0645d023b13b03 (patch) | |
tree | 7b9417700c6942124614f4639bfbea8ff5c68b9e /Python/import.c | |
parent | 468742878f53bb0a9061e6b167b3150f341fdf1c (diff) | |
download | cpython-git-79acb9edfa893b5072350c82fd0645d023b13b03.tar.gz |
Patch #614055: Support OpenVMS.
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 7 |
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"); |