Hi, the following patch fixes the build failure of Mercurial.