Skip to content
Snippets Groups Projects
  • Jakub Jelinek's avatar
    73a9216b
    libgcov: Fix build on Darwin [PR99406] · 73a9216b
    Jakub Jelinek authored
    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.
    73a9216b
    History
    libgcov: Fix build on Darwin [PR99406]
    Jakub Jelinek authored
    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.