Windows: Include <uv.h> for S_IFLNK.

S_IFLNK is not defined on Windows but libuv defines it for us.
This commit is contained in:
Rui Abreu Ferreira
2016-01-15 00:38:23 -05:00
committed by Seth Jackson
parent 55a345c3e7
commit d38d6486f2

View File

@@ -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", ""}