aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2016-01-16 18:58:28 -0500
committerMichael Reed <m.reed@mykolab.com>2016-01-16 18:58:28 -0500
commit3b4d1ab18002328c00be98a114c40db1b7225570 (patch)
tree78078c2c62a965811d6928d67eef0e3cb0627ca5
parenta7ade5c832dc5081afbc3f6bd21657491b27863a (diff)
downloadrneovim-3b4d1ab18002328c00be98a114c40db1b7225570.tar.gz
rneovim-3b4d1ab18002328c00be98a114c40db1b7225570.tar.bz2
rneovim-3b4d1ab18002328c00be98a114c40db1b7225570.zip
os/win_defs.h: Define O_NOFOLLOW
It's not present on Windows; see the discussion in #4024.
-rw-r--r--src/nvim/os/win_defs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/os/win_defs.h b/src/nvim/os/win_defs.h
index 2ce74c9818..642b038b6b 100644
--- a/src/nvim/os/win_defs.h
+++ b/src/nvim/os/win_defs.h
@@ -50,6 +50,10 @@ typedef SSIZE_T ssize_t;
# endif
#endif
+#ifndef O_NOFOLLOW
+# define O_NOFOLLOW 0
+#endif
+
#if !defined(S_ISDIR) && defined(S_IFDIR)
# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif