summaryrefslogtreecommitdiff
path: root/acinclude.m4
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
commit24c638e165b72ebf8e6c3a50a7951573c10e093d (patch)
tree45bc610a4710673fa7c7667a179d7105989554d2 /acinclude.m4
parent5151cb841e950901d4e04c92d96ba67d6f5469e8 (diff)
downloadc-ares-24c638e165b72ebf8e6c3a50a7951573c10e093d.tar.gz
c-ares-24c638e165b72ebf8e6c3a50a7951573c10e093d.tar.bz2
c-ares-24c638e165b72ebf8e6c3a50a7951573c10e093d.zip
Get qualifier of arg 1 for getnameinfo apart.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 0ff547b..f207df4 100644
--- a/acinclude.m4
+++ b/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"