aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-06-30 19:20:16 +0000
committerYang Tse <yangsita@gmail.com>2006-06-30 19:20:16 +0000
commitff709848a682b9669bbb784c4d72c0e3e2905e48 (patch)
tree6af0f7ae6b4e63f48f1688c35e9ead34cb6a8703
parent279dd6d878cc032b9024bf67743e0d30fba4874b (diff)
Get qualifier of arg 1 for getnameinfo apart.
-rw-r--r--ares/acinclude.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/ares/acinclude.m4 b/ares/acinclude.m4
index 0ff547b74..f207df461 100644
--- a/ares/acinclude.m4
+++ b/ares/acinclude.m4
@@ -355,6 +355,18 @@ AC_DEFUN([CURL_CHECK_FUNC_GETNAMEINFO], [
[Define to the type of args 4 and 6 for getnameinfo.])
AC_DEFINE_UNQUOTED(GETNAMEINFO_TYPE_ARG7, $[4],
[Define to the type of arg 7 for getnameinfo.])
+ #
+ case "$[1]" in
+ const*)
+ AC_DEFINE_UNQUOTED(GETNAMEINFO_QUAL_ARG1, "const",
+ [Define to the type qualifier of arg 1 for getnameinfo.])
+ ;;
+ *)
+ AC_DEFINE_UNQUOTED(GETNAMEINFO_QUAL_ARG1, "",
+ [Define to the type qualifier of arg 1 for getnameinfo.])
+ ;;
+ esac
+ #
AC_DEFINE_UNQUOTED(HAVE_GETNAMEINFO, 1,
[Define to 1 if you have the getnameinfo function.])
ac_cv_func_getnameinfo="yes"