diff options
-rw-r--r-- | Misc/NEWS.d/next/Windows/2020-05-19-04-11-12.bpo-40677.qQbLW8.rst | 1 | ||||
-rw-r--r-- | Modules/_stat.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Windows/2020-05-19-04-11-12.bpo-40677.qQbLW8.rst b/Misc/NEWS.d/next/Windows/2020-05-19-04-11-12.bpo-40677.qQbLW8.rst new file mode 100644 index 0000000..a09cb24 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2020-05-19-04-11-12.bpo-40677.qQbLW8.rst @@ -0,0 +1 @@ +Manually define IO_REPARSE_TAG_APPEXECLINK in case some old Windows SDK doesn't have it.
\ No newline at end of file diff --git a/Modules/_stat.c b/Modules/_stat.c index c7090c0..546e6a5 100644 --- a/Modules/_stat.c +++ b/Modules/_stat.c @@ -40,6 +40,10 @@ typedef unsigned short mode_t; # define FILE_ATTRIBUTE_NO_SCRUB_DATA 0x20000 #endif +#ifndef IO_REPARSE_TAG_APPEXECLINK +# define IO_REPARSE_TAG_APPEXECLINK 0x8000001BL +#endif + #endif /* MS_WINDOWS */ /* From Python's stat.py */ |