Skip to content

Commit 040db8a

Browse files
authored
Merge pull request libgit2#5077 from jacquesg/symbolic_link_flag_directory
Define SYMBOLIC_LINK_FLAG_DIRECTORY if required
2 parents c9f116f + 0fd259e commit 040db8a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/win32/posix_w32.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
# define SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE 0x02
3434
#endif
3535

36+
#ifndef SYMBOLIC_LINK_FLAG_DIRECTORY
37+
# define SYMBOLIC_LINK_FLAG_DIRECTORY 0x01
38+
#endif
39+
3640
/* Allowable mode bits on Win32. Using mode bits that are not supported on
3741
* Win32 (eg S_IRWXU) is generally ignored, but Wine warns loudly about it
3842
* so we simply remove them.

0 commit comments

Comments
 (0)