( )⚙ D11763 cext: define S_IFLNK on Python 2.7 and Windows

This is an archive of the discontinued Mercurial Phabricator instance.

cext: define S_IFLNK on Python 2.7 and Windows
ClosedPublic

Authored by indygreg on Nov 15 2021, 10:54 PM.

Details

Summary

Before this change, building on Python 2.7 on Windows fails due to
S_IFLNK being undefined. This regression was introduced by
a32a96079e2d / D11518.

It worked on Python 3 because its pyport.h (which is included via
Python.h) contains effectively the same code as added by this
changeset.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Nov 15 2021, 10:54 PM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.