diff -rupN --no-dereference Python-3.10.9/Modules/_stat.c Python-3.10.9-new/Modules/_stat.c --- Python-3.10.9/Modules/_stat.c 2022-12-06 19:31:21.000000000 +0100 +++ Python-3.10.9-new/Modules/_stat.c 2022-12-08 09:36:59.366024861 +0100 @@ -600,11 +600,13 @@ stat_exec(PyObject *module) PyLong_FromUnsignedLong(IO_REPARSE_TAG_MOUNT_POINT)) < 0) { return -1; } +#if !defined(__MINGW32__) if (PyModule_AddObject(module, "IO_REPARSE_TAG_APPEXECLINK", PyLong_FromUnsignedLong(IO_REPARSE_TAG_APPEXECLINK)) < 0) { return -1; } #endif +#endif return 0; }