quagga.patch 604 B

123456789101112131415161718192021
  1. Index: lib/sockopt.h
  2. --- lib/sockopt.h.orig 2004-10-22 15:14:35 +0200
  3. +++ lib/sockopt.h 2004-10-23 11:46:59 +0200
  4. @@ -60,9 +60,15 @@
  5. #if defined (SUNOS_5)
  6. #define SOPT_SIZE_CMSG_RECVIF_IPV4() (sizeof (uint_t))
  7. -#else
  8. +#elif defined (CMSG_ALIGN)
  9. +#define SOPT_SIZE_CMSG_IFINDEX_IPV4() \
  10. + CMSG_ALIGN((sizeof (struct sockaddr_dl)))
  11. +#elif defined (__CMSG_ALIGN)
  12. #define SOPT_SIZE_CMSG_RECVIF_IPV4() \
  13. __CMSG_ALIGN((sizeof (struct sockaddr_dl)))
  14. +#elif defined (_ALIGN)
  15. +#define SOPT_SIZE_CMSG_IFINDEX_IPV4() \
  16. + _ALIGN((sizeof (struct sockaddr_dl)))
  17. #endif /* SUNOS_5 */
  18. #endif /* IP_RECVIF */