make iodined build on opensolaris

This commit is contained in:
Erik Ekman 2008-12-25 16:56:13 +00:00 committed by Erik Ekman
parent cc075124fa
commit 85e75cadea
2 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,7 @@
#if defined IP_RECVDSTADDR
# define DSTADDR_SOCKOPT IP_RECVDSTADDR
# define dstaddr(x) (CMSG_DATA(x))
# define dstaddr(x) ((struct in_addr *) CMSG_DATA(x))
#elif defined IP_PKTINFO
# define DSTADDR_SOCKOPT IP_PKTINFO
# define dstaddr(x) (&(((struct in_pktinfo *)(CMSG_DATA(x)))->ipi_addr))

View File

@ -23,6 +23,7 @@
#include <sys/types.h>
#include <sys/param.h>
#include <sys/time.h>
#define _XPG4_2
#include <sys/socket.h>
#include <sys/uio.h>
#include <fcntl.h>