libgcov: Fix build on Darwin [PR99406]
authorJakub Jelinek <jakub@redhat.com>
Sat, 6 Mar 2021 15:22:27 +0000 (16:22 +0100)
committerJakub Jelinek <jakub@redhat.com>
Sat, 6 Mar 2021 15:22:27 +0000 (16:22 +0100)
commit73a9216b8a47889234c94e3aaec193391ee6604d
treef6e8adbde15e21a0e99e723edc13a787335798a8
parent84185598dc7470bad4e7f8c22b64e3c944efb670
libgcov: Fix build on Darwin [PR99406]

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.

2021-03-06  Jakub Jelinek  <jakub@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.
libgcc/libgcov.h