Skip to content

Commit

Permalink
Alexander Lazic improved the getservbyport_r() configure check.
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Jan 9, 2006
1 parent 7a03bda commit de713cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES
@@ -1,5 +1,9 @@
Changelog for the c-ares project

* January 9, 2006

- Alexander Lazic improved the getservbyport_r() configure check.

* January 6, 2006

- Alexander Lazic pointed out that the buildconf should use the ACLOCAL_FLAGS
Expand Down
6 changes: 3 additions & 3 deletions acinclude.m4
Expand Up @@ -782,23 +782,23 @@ AC_DEFUN([CARES_CHECK_CONSTANT], [
dnl This macro determines how many parameters getservbyport_r takes
AC_DEFUN([CARES_CHECK_GETSERVBYPORT_R], [
AC_MSG_CHECKING([how many arguments getservbyport_r takes])
AC_TRY_COMPILE(
AC_TRY_LINK(
[#include <netdb.h>],
[
int p1, p5;
char *p2, p4[4096];
struct servent *p3, *p6;
getservbyport_r(p1, p2, p3, p4, p5, &p6);
], ac_func_getservbyport_r=6,
[AC_TRY_COMPILE(
[AC_TRY_LINK(
[#include <netdb.h>],
[
int p1, p5;
char *p2, p4[4096];
struct servent *p3;
getservbyport_r(p1, p2, p3, p4, p5);
], ac_func_getservbyport_r=5,
[AC_TRY_COMPILE(
[AC_TRY_LINK(
[#include <netdb.h>],
[
int p1;
Expand Down

0 comments on commit de713cb

Please sign in to comment.