Skip to content
Snippets Groups Projects
  • Daniel Stenberg's avatar
    325391ae
    Albert Chin: · 325391ae
    Daniel Stenberg authored
    Forgot one case. On HP-UX 11.00, gethostbyname_r() is properly defined
    if -D_REENTRANT is used. Without it, the compiler still accepts the
    function prototype but gives a warning about hostent_data going out of
    scope. This is because struct hostent_data is not declared. So, we
    force an error by trying to set a variable to the struct.
    325391ae
    History
    Albert Chin:
    Daniel Stenberg authored
    Forgot one case. On HP-UX 11.00, gethostbyname_r() is properly defined
    if -D_REENTRANT is used. Without it, the compiler still accepts the
    function prototype but gives a warning about hostent_data going out of
    scope. This is because struct hostent_data is not declared. So, we
    force an error by trying to set a variable to the struct.