mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 12:50:00 -04:00
ISC_SOCKADDR_LEN_T
This commit is contained in:
parent
f0b6aa146e
commit
a1703aa367
2 changed files with 38 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
|
|||
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
|
||||
AC_DIVERT_POP()dnl
|
||||
|
||||
AC_REVISION($Revision: 1.60 $)
|
||||
AC_REVISION($Revision: 1.61 $)
|
||||
|
||||
AC_INIT(resolv/herror.c)
|
||||
AC_PREREQ(2.13)
|
||||
|
|
@ -1318,6 +1318,42 @@ AC_CHECK_FUNC(chroot, AC_DEFINE(HAVE_CHROOT))
|
|||
AC_CHECK_HEADERS(linux/capability.h)
|
||||
AC_CHECK_HEADERS(sys/prctl.h)
|
||||
|
||||
#
|
||||
# for accept, recvfrom, getpeername etc.
|
||||
#
|
||||
AC_MSG_CHECKING(for socket length type)
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
int accept(int, struct sockaddr *, socklen_t *);
|
||||
],[],
|
||||
[ISC_SOCKADDR_LEN_T="#define ISC_SOCKADDR_LEN_T socklen_t"]
|
||||
,
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
int accept(int, struct sockaddr *, unsigned int *);
|
||||
],[],
|
||||
[ISC_SOCKADDR_LEN_T="#define ISC_SOCKADDR_LEN_T unsigned int"]
|
||||
,
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
int accept(int, struct sockaddr *, unsigned long *);
|
||||
],[],
|
||||
[ISC_SOCKADDR_LEN_T="#define ISC_SOCKADDR_LEN_T unsigned long"]
|
||||
,
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
int accept(int, struct sockaddr *, long *);
|
||||
],[],
|
||||
[ISC_SOCKADDR_LEN_T="#define ISC_SOCKADDR_LEN_T long"]
|
||||
,
|
||||
ISC_SOCKADDR_LEN_T="#define ISC_SOCKADDR_LEN_T int"
|
||||
))))
|
||||
AC_SUBST(ISC_SOCKADDR_LEN_T)
|
||||
|
||||
#
|
||||
# BSD/OS, and perhaps some others, don't define rlim_t.
|
||||
#
|
||||
|
|
|
|||
|
|
@ -121,5 +121,6 @@ struct timezone; /* silence warning */
|
|||
#define UNUSED(x) (x) = (x)
|
||||
|
||||
@SOLARIS_BITTYPES@
|
||||
@ISC_SOCKADDR_LEN_T@
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue