Ticket #39602: patch-Port-bsd-lowlevel-bsd.c.diff

File patch-Port-bsd-lowlevel-bsd.c.diff, 717 bytes (added by fclaire@…, 11 years ago)
  • Port-bsd/lowlevel-bsd.c

    old new  
    1010 *
    1111 */
    1212
     13#define __APPLE_USE_RFC_3542
    1314#include <stdio.h>
    1415#include <arpa/inet.h>
    1516#include <netinet/in.h>
     
    328329    }
    329330
    330331    /* Mac OS X have IPV6_PKTINFO only */
    331     /* OpenBSD, NetBSD require IPV6_RECVPKTINFO */
     332    /* OpenBSD, NetBSD require IPV6_RECVPKTINFO
    332333#if (HAVE_DECL_IPV6_RECVPKTINFO == 0) && (HAVE_DECL_IPV6_PKTINFO == 0)
    333334#error "Both IPV6_RECVPKTINFO and IPV6_PKTINFO not defined. Need at least one of them"
    334 #endif
     335#endif */
    335336
    336337    /* Set the options to receive info about ipv6 traffic */
    337338#if HAVE_DECL_IPV6_RECVPKTINFO == 1