aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2016-01-15 00:38:23 -0500
committerSeth Jackson <sethjackson@gmail.com>2016-01-17 09:33:43 -0500
commitd38d6486f25bdf12b4b9bb959c3e288c3246305d (patch)
tree4cec6b2a3d2efd0f262a14f57a0fe09d66e75821 /src
parent55a345c3e750dc4e4e8fd44d7f836e67a35524a6 (diff)
downloadrneovim-d38d6486f25bdf12b4b9bb959c3e288c3246305d.tar.gz
rneovim-d38d6486f25bdf12b4b9bb959c3e288c3246305d.tar.bz2
rneovim-d38d6486f25bdf12b4b9bb959c3e288c3246305d.zip
Windows: Include <uv.h> for S_IFLNK.
S_IFLNK is not defined on Windows but libuv defines it for us.
Diffstat (limited to 'src')
-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 642b038b6b..ba96347a12 100644
--- a/src/nvim/os/win_defs.h
+++ b/src/nvim/os/win_defs.h
@@ -5,6 +5,10 @@
#include <sys/stat.h>
#include <stdio.h>
+// Windows does not have S_IFLNK but libuv defines it
+// and sets the flag for us when calling uv_fs_stat.
+#include <uv.h>
+
#define NAME_MAX _MAX_PATH
#define TEMP_DIR_NAMES {"$TMP", "$TEMP", "$USERPROFILE", ""}