mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
Alexander Lazic improved the getservbyport_r() configure check.
This commit is contained in:
parent
2acd1c1642
commit
4969ca768d
@ -1,5 +1,9 @@
|
|||||||
Changelog for the c-ares project
|
Changelog for the c-ares project
|
||||||
|
|
||||||
|
* January 9, 2006
|
||||||
|
|
||||||
|
- Alexander Lazic improved the getservbyport_r() configure check.
|
||||||
|
|
||||||
* January 6, 2006
|
* January 6, 2006
|
||||||
|
|
||||||
- Alexander Lazic pointed out that the buildconf should use the ACLOCAL_FLAGS
|
- Alexander Lazic pointed out that the buildconf should use the ACLOCAL_FLAGS
|
||||||
|
@ -782,7 +782,7 @@ AC_DEFUN([CARES_CHECK_CONSTANT], [
|
|||||||
dnl This macro determines how many parameters getservbyport_r takes
|
dnl This macro determines how many parameters getservbyport_r takes
|
||||||
AC_DEFUN([CARES_CHECK_GETSERVBYPORT_R], [
|
AC_DEFUN([CARES_CHECK_GETSERVBYPORT_R], [
|
||||||
AC_MSG_CHECKING([how many arguments getservbyport_r takes])
|
AC_MSG_CHECKING([how many arguments getservbyport_r takes])
|
||||||
AC_TRY_COMPILE(
|
AC_TRY_LINK(
|
||||||
[#include <netdb.h>],
|
[#include <netdb.h>],
|
||||||
[
|
[
|
||||||
int p1, p5;
|
int p1, p5;
|
||||||
@ -790,7 +790,7 @@ AC_DEFUN([CARES_CHECK_GETSERVBYPORT_R], [
|
|||||||
struct servent *p3, *p6;
|
struct servent *p3, *p6;
|
||||||
getservbyport_r(p1, p2, p3, p4, p5, &p6);
|
getservbyport_r(p1, p2, p3, p4, p5, &p6);
|
||||||
], ac_func_getservbyport_r=6,
|
], ac_func_getservbyport_r=6,
|
||||||
[AC_TRY_COMPILE(
|
[AC_TRY_LINK(
|
||||||
[#include <netdb.h>],
|
[#include <netdb.h>],
|
||||||
[
|
[
|
||||||
int p1, p5;
|
int p1, p5;
|
||||||
@ -798,7 +798,7 @@ AC_DEFUN([CARES_CHECK_GETSERVBYPORT_R], [
|
|||||||
struct servent *p3;
|
struct servent *p3;
|
||||||
getservbyport_r(p1, p2, p3, p4, p5);
|
getservbyport_r(p1, p2, p3, p4, p5);
|
||||||
], ac_func_getservbyport_r=5,
|
], ac_func_getservbyport_r=5,
|
||||||
[AC_TRY_COMPILE(
|
[AC_TRY_LINK(
|
||||||
[#include <netdb.h>],
|
[#include <netdb.h>],
|
||||||
[
|
[
|
||||||
int p1;
|
int p1;
|
||||||
|
Loading…
Reference in New Issue
Block a user