diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-01-31 07:53:20 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-01-31 07:53:20 +0000 |
commit | 325391aef90a8b1cfbf8c5980a4f15d602b9e72c (patch) | |
tree | a274e0c09d67ec73898fcd36004df7c6ebfb48d5 /acinclude.m4 | |
parent | 3474ec4ecb72c664254c4f75b94a4959ab11b227 (diff) | |
download | curl-325391aef90a8b1cfbf8c5980a4f15d602b9e72c.tar.gz |
Albert Chin:
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.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index e4a37913e..3b7ab69f0 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -377,6 +377,7 @@ AC_DEFUN(CURL_CHECK_GETHOSTBYNAME_R, int gethostbyname_r(const char *, struct hostent *, struct hostent_data *);],[ +struct hostent_data data; gethostbyname_r(NULL, NULL, NULL);],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_GETHOSTBYNAME_R_3) @@ -394,6 +395,7 @@ gethostbyname_r(NULL, NULL, NULL);],[ int gethostbyname_r(const char *,struct hostent *, struct hostent_data *);],[ +struct hostent_data data; gethostbyname_r(NULL, NULL, NULL);],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_GETHOSTBYNAME_R_3) |