Index: lib/sockopt.h --- lib/sockopt.h.orig 2004-10-22 15:14:35 +0200 +++ lib/sockopt.h 2004-10-23 11:46:59 +0200 @@ -60,9 +60,15 @@ #if defined (SUNOS_5) #define SOPT_SIZE_CMSG_RECVIF_IPV4() (sizeof (uint_t)) -#else +#elif defined (CMSG_ALIGN) +#define SOPT_SIZE_CMSG_IFINDEX_IPV4() \ + CMSG_ALIGN((sizeof (struct sockaddr_dl))) +#elif defined (__CMSG_ALIGN) #define SOPT_SIZE_CMSG_RECVIF_IPV4() \ __CMSG_ALIGN((sizeof (struct sockaddr_dl))) +#elif defined (_ALIGN) +#define SOPT_SIZE_CMSG_IFINDEX_IPV4() \ + _ALIGN((sizeof (struct sockaddr_dl))) #endif /* SUNOS_5 */ #endif /* IP_RECVIF */