aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-23 04:20:39 +0000
committerYang Tse <yangsita@gmail.com>2008-07-23 04:20:39 +0000
commitf14e020370ca4d6f05fde59449dfd4a7f99f6e35 (patch)
tree80c3baef7efa9c338916055046c078d60057c16b /ares
parente933b28aafaeabf571683087a3a0006e0fdc638e (diff)
reorder argument number detection for getservbyport_r to
actually verify if the test is properly working
Diffstat (limited to 'ares')
-rw-r--r--ares/acinclude.m424
1 files changed, 12 insertions, 12 deletions
diff --git a/ares/acinclude.m4 b/ares/acinclude.m4
index 10de92717..da8366977 100644
--- a/ares/acinclude.m4
+++ b/ares/acinclude.m4
@@ -2059,16 +2059,16 @@ AC_DEFUN([CARES_CHECK_GETSERVBYPORT_R], [
#endif
extern int
getservbyport_r(int, const char*, struct servent*,
- struct servent_data*);
+ char*, size_t, struct servent**);
]],[[
int p1, res;
- char *p2;
- struct servent *p3;
- struct servent_data *p4;
- res = getservbyport_r(p1, p2, p3, p4);
+ size_t p5;
+ char *p2, p4[4096];
+ struct servent *p3, *p6;
+ res = getservbyport_r(p1, p2, p3, p4, p5, &p6);
]])
],[
- cares_cv_getservbyport_r_nargs="4"
+ cares_cv_getservbyport_r_nargs="6"
])
#
if test "$cares_cv_getservbyport_r_nargs" = "unknown"; then
@@ -2105,16 +2105,16 @@ AC_DEFUN([CARES_CHECK_GETSERVBYPORT_R], [
#endif
extern int
getservbyport_r(int, const char*, struct servent*,
- char*, size_t, struct servent**);
+ struct servent_data*);
]],[[
int p1, res;
- size_t p5;
- char *p2, p4[4096];
- struct servent *p3, *p6;
- res = getservbyport_r(p1, p2, p3, p4, p5, &p6);
+ char *p2;
+ struct servent *p3;
+ struct servent_data *p4;
+ res = getservbyport_r(p1, p2, p3, p4);
]])
],[
- cares_cv_getservbyport_r_nargs="6"
+ cares_cv_getservbyport_r_nargs="4"
])
fi
#