Skip to content
Snippets Groups Projects
  • Michał Górny's avatar
    7b1e5fa3
    BuildSystem: Fix misdetection of gethostbyname_r() on NetBSD · 7b1e5fa3
    Michał Górny authored
    Fix the configure script not to detect the presence of gethostbyname_r()
    on NetBSD incorrectly.  NetBSD includes it as an internal libc symbol
    that is not exposed in system headers and that is incompatible with
    other implementations.  In order to avoid misdetecting it, perform
    the symbol check only if the declaration is found in the public header
    first.
    
    ASTERISK-29817
    
    Change-Id: Iafa359b09908251bcd299ff54be003ea129b9eda
    7b1e5fa3
    History
    BuildSystem: Fix misdetection of gethostbyname_r() on NetBSD
    Michał Górny authored
    Fix the configure script not to detect the presence of gethostbyname_r()
    on NetBSD incorrectly.  NetBSD includes it as an internal libc symbol
    that is not exposed in system headers and that is incompatible with
    other implementations.  In order to avoid misdetecting it, perform
    the symbol check only if the declaration is found in the public header
    first.
    
    ASTERISK-29817
    
    Change-Id: Iafa359b09908251bcd299ff54be003ea129b9eda