diff options
author | Chris Watkins <chris.watkins88@gmail.com> | 2014-04-22 23:30:46 -0700 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-24 10:49:14 -0300 |
commit | b951cf5bfc5eac07cf5d60c29c0db7ee1f2818cc (patch) | |
tree | f7eb8f53f56c5159f55fb560d4ceadee0bd070cc /src/undo.c | |
parent | bf9aeda01c0c134002d12eebaf1ffec7003417d6 (diff) | |
download | rneovim-b951cf5bfc5eac07cf5d60c29c0db7ee1f2818cc.tar.gz rneovim-b951cf5bfc5eac07cf5d60c29c0db7ee1f2818cc.tar.bz2 rneovim-b951cf5bfc5eac07cf5d60c29c0db7ee1f2818cc.zip |
Remove O_EXTRA which was only for EMX and cygwin.
Diffstat (limited to 'src/undo.c')
-rw-r--r-- | src/undo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/undo.c b/src/undo.c index 91add9e3dd..ee50fa90d9 100644 --- a/src/undo.c +++ b/src/undo.c @@ -1155,7 +1155,7 @@ void u_write_undo(char_u *name, int forceit, buf_T *buf, char_u *hash) if (os_file_exists(file_name)) { if (name == NULL || !forceit) { /* Check we can read it and it's an undo file. */ - fd = mch_open((char *)file_name, O_RDONLY|O_EXTRA, 0); + fd = mch_open((char *)file_name, O_RDONLY, 0); if (fd < 0) { if (name != NULL || p_verbose > 0) { if (name == NULL) @@ -1200,7 +1200,7 @@ void u_write_undo(char_u *name, int forceit, buf_T *buf, char_u *hash) } fd = mch_open((char *)file_name, - O_CREAT|O_EXTRA|O_WRONLY|O_EXCL|O_NOFOLLOW, perm); + O_CREAT|O_WRONLY|O_EXCL|O_NOFOLLOW, perm); if (fd < 0) { EMSG2(_(e_not_open), file_name); goto theend; |