2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

add configure test for sockaddr_in.sin_len member

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@237 e5f2f494-b856-4b98-b285-d166d9295462
This commit is contained in:
Evan Hunt
2009-10-30 17:47:35 +00:00
parent d733113e25
commit ae0982d306
3 changed files with 15 additions and 2 deletions

View File

@@ -20,6 +20,15 @@ AC_PROG_RANLIB
AC_HEADER_STDBOOL
AC_TYPE_SIZE_T
AC_MSG_CHECKING(for sa_len in struct sockaddr)
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>],
[struct sockaddr sa; sa.sa_len = 0; return (0);],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_SIN_LEN, 1, Define to 1 if sockaddr_in has a sin_len member)],
AC_MSG_RESULT(no))
#
# Check availablity of gtest, which might be used for unit tests.
#