On Fri, Mar 05, 2021 at 04:19:47PM +0000, Iain Sandoe wrote: > Jakub Jelinek via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > > As reported, bootstrap currently fails on older Darwin because > > MAP_ANONYMOUS > > is not defined. > > > > The following is what gcc/system.h does, so I think it should work for > > libgcov. > > Build tested on x86_64-linux, ok for trunk? > > bootstrap suceeded r11-7524 + this patch on Darwin11.
And bootstrap/regtest succeeded on x86_64-linux and i686-linux too. > > 2021-03-05 Jakub Jelinek <ja...@redhat.com> > > > > PR gcov-profile/99406 > > * libgcov.h (MAP_FAILED, MAP_ANONYMOUS): If HAVE_SYS_MMAN_H is > > defined, define these macros if not defined already. Jakub