# HG changeset patch # User Raphaël Gomès # Date 2021-10-20 16:05:16 # Node ID 249d1888e9d8ff9dbb4c980f73bf1032ad341eb5 # Parent fd3d4b7f8e62ef7aa883b83417705eb6a444e2d9 parsers: don't ask about the exec bit on platforms that don't have it Otherwise the compiler gets quite sad. Differential Revision: https://phab.mercurial-scm.org/D11711 diff --git a/mercurial/cext/parsers.c b/mercurial/cext/parsers.c --- a/mercurial/cext/parsers.c +++ b/mercurial/cext/parsers.c @@ -260,11 +260,16 @@ static PyObject *dirstate_item_v2_data(d { 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 {