summaryrefslogtreecommitdiffstats
path: root/Modules/_stat.c
diff options
context:
space:
mode:
authorMinmin Gong <gongminmin@msn.com>2020-05-19 12:22:16 (GMT)
committerGitHub <noreply@github.com>2020-05-19 12:22:16 (GMT)
commit711f9e180a48baba62301735b7f1a58ef0d0e93a (patch)
treefc5f1134d8fc9ba2003b751b90f3aed39c90b2f2 /Modules/_stat.c
parent8c862e51248c5ebfec787badec88eb58c9267e1e (diff)
downloadcpython-711f9e180a48baba62301735b7f1a58ef0d0e93a.zip
cpython-711f9e180a48baba62301735b7f1a58ef0d0e93a.tar.gz
cpython-711f9e180a48baba62301735b7f1a58ef0d0e93a.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.
Diffstat (limited to 'Modules/_stat.c')
-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 */