]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40677: Define IO_REPARSE_TAG_APPEXECLINK explicitly (GH-20206)
authorMinmin Gong <gongminmin@msn.com>
Tue, 19 May 2020 12:22:16 +0000 (05:22 -0700)
committerGitHub <noreply@github.com>
Tue, 19 May 2020 12:22:16 +0000 (13:22 +0100)
This allows building with older versions of the Windows SDK where the value is not defined.

Misc/NEWS.d/next/Windows/2020-05-19-04-11-12.bpo-40677.qQbLW8.rst [new file with mode: 0644]
Modules/_stat.c

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 (file)
index 0000000..a09cb24
--- /dev/null
@@ -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
index c7090c02688dee89aec138b292d76fe65017abc3..546e6a5f94ca15a49d0264d9569021ed042f9748 100644 (file)
@@ -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 */