2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-22 01:49:35 +00:00

Build fixes for Solaris.

See RT ticket #16966 for more.
This commit is contained in:
Shane Kerr 2007-06-26 09:56:52 +00:00
parent bda3316935
commit 847e7000cc
2 changed files with 25 additions and 0 deletions

View File

@ -54,6 +54,8 @@ suggested fixes to <dhcp-users@isc.org>.
Changes since 4.0.0a1
- Autoconf now supplies proper flags for Solaris DHCPv6 builds.
- Fix for parsing error on some IPv6 addresses.
- Invalid CIDR representation for IPv6 subnets or ranges now checked

View File

@ -163,6 +163,29 @@ AC_CHECK_SIZEOF(struct iaddr *, , [
#include <stdio.h>
])
# Solaris does not have the msg_control or msg_controlen members in
# in the msghdr structure unless you define:
#
# _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
#
# See the "standards" man page for details.
#
# We check for the msg_control member, and if it is not found, we check
# again with the appropriate defines added to the CFLAGS. (In order to
# do this we have to remove the check from the cache, which is what the
# "unset" is for.)
AC_CHECK_MEMBER(struct msghdr.msg_control,,
[CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
CFLAGS="$CFLAGS -D__EXTENSIONS__"
unset ac_cv_member_struct_msghdr_msg_control
AC_CHECK_MEMBER(struct msghdr.msg_control,,
[AC_MSG_ERROR([Missing msg_control member in
msg_control structure.])],
[#include <sys/types.h>
#include <sys/socket.h>])],
[#include <sys/types.h>
#include <sys/socket.h>])
AC_OUTPUT([
Makefile
client/Makefile