--- a/mercurial/cext/parsers.c Tue Oct 19 18:06:07 2021 -0700
+++ b/mercurial/cext/parsers.c Wed Oct 20 18:05:16 2021 +0200
@@ -260,11 +260,16 @@
{
int flags = self->flags;
int mode = dirstate_item_c_v1_mode(self);
+#ifdef S_IXUSR
+ /* This is for platforms with an exec bit */
if ((mode & S_IXUSR) != 0) {
flags |= dirstate_flag_mode_exec_perm;
} else {
flags &= ~dirstate_flag_mode_exec_perm;
}
+#else
+ flags &= ~dirstate_flag_mode_exec_perm;
+#endif
if (S_ISLNK(mode)) {
flags |= dirstate_flag_mode_is_symlink;
} else {