summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-05-19 12:40:21 (GMT)
committerGitHub <noreply@github.com>2020-05-19 12:40:21 (GMT)
commit76d9a9cdc11c7b0153f9717d6edd1b681d5d1da5 (patch)
treee904d9cc4d263e6ffb711b91beb57bf39a5c00eb /Modules
parentc06983bc30e02700552c91be45559ca27fabc08e (diff)
downloadcpython-76d9a9cdc11c7b0153f9717d6edd1b681d5d1da5.zip
cpython-76d9a9cdc11c7b0153f9717d6edd1b681d5d1da5.tar.gz
cpython-76d9a9cdc11c7b0153f9717d6edd1b681d5d1da5.tar.bz2
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@msn.com>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_stat.c4
1 files changed, 4 insertions, 0 deletions
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 */