-
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.
Daniel Stenberg authoredForgot 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.