summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-05-20 14:11:32 +0200
committerGitHub <noreply@github.com>2019-05-20 14:11:32 +0200
commit040db8ad749ce7cfff1148993a71e31f6a52ca9e (patch)
treea9e25a6121396aa98200f97920964c35a6b04aa4
parentc9f116f148c9eb64988eb36ec83d1a653dc81ee0 (diff)
parent0fd259ed7a597c32d619190898bb5780a1ddbdd4 (diff)
downloadlibgit2-040db8ad749ce7cfff1148993a71e31f6a52ca9e.tar.gz
Merge pull request #5077 from jacquesg/symbolic_link_flag_directory
Define SYMBOLIC_LINK_FLAG_DIRECTORY if required
-rw-r--r--src/win32/posix_w32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/win32/posix_w32.c b/src/win32/posix_w32.c
index 05ac79a16..c082dbacd 100644
--- a/src/win32/posix_w32.c
+++ b/src/win32/posix_w32.c
@@ -33,6 +33,10 @@
# define SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE 0x02
#endif
+#ifndef SYMBOLIC_LINK_FLAG_DIRECTORY
+# define SYMBOLIC_LINK_FLAG_DIRECTORY 0x01
+#endif
+
/* Allowable mode bits on Win32. Using mode bits that are not supported on
* Win32 (eg S_IRWXU) is generally ignored, but Wine warns loudly about it
* so we simply remove them.