[Python-checkins] bpo-40677: Define IO_REPARSE_TAG_APPEXECLINK explicitly (GH-20206)

Miss Islington (bot) webhook-mailer at python.org
Tue May 19 08:39:14 EDT 2020


https://github.com/python/cpython/commit/560d6436611900bc23d3dd1158acbe6fa39b2c9b
commit: 560d6436611900bc23d3dd1158acbe6fa39b2c9b
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-05-19T05:39:06-07:00
summary:

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.
(cherry picked from commit 711f9e180a48baba62301735b7f1a58ef0d0e93a)

Co-authored-by: Minmin Gong <gongminmin at msn.com>

files:
A Misc/NEWS.d/next/Windows/2020-05-19-04-11-12.bpo-40677.qQbLW8.rst
M 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
index 0000000000000..a09cb243aba31
--- /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 6a3020a00d114..7a799af0cada2 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 */



More information about the Python-checkins mailing list