Skip to content

Commit 711f9e1

Browse files
authored
bpo-40677: Define IO_REPARSE_TAG_APPEXECLINK explicitly (GH-20206)
This allows building with older versions of the Windows SDK where the value is not defined.
1 parent 8c862e5 commit 711f9e1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Manually define IO_REPARSE_TAG_APPEXECLINK in case some old Windows SDK doesn't have it.

Modules/_stat.c

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ typedef unsigned short mode_t;
4040
# define FILE_ATTRIBUTE_NO_SCRUB_DATA 0x20000
4141
#endif
4242

43+
#ifndef IO_REPARSE_TAG_APPEXECLINK
44+
# define IO_REPARSE_TAG_APPEXECLINK 0x8000001BL
45+
#endif
46+
4347
#endif /* MS_WINDOWS */
4448

4549
/* From Python's stat.py */

0 commit comments

Comments
 (0)