Ticket #5774: patchudptv2.diff

File patchudptv2.diff, 893 bytes (added by Carl Eugen Hoyos, 10 years ago)
  • libavformat/udp.c

    diff --git a/libavformat/udp.c b/libavformat/udp.c
    index 8699c1c..3835f98 100644
    a b  
    4242#include "os_support.h"
    4343#include "url.h"
    4444
     45#ifdef __APPLE__
     46#include "TargetConditionals.h"
     47#endif
     48
    4549#if HAVE_UDPLITE_H
    4650#include "udplite.h"
    4751#else
    static int udp_set_multicast_sources(URLContext *h,  
    278282                                     int addr_len, char **sources,
    279283                                     int nb_sources, int include)
    280284{
    281 #if HAVE_STRUCT_GROUP_SOURCE_REQ && defined(MCAST_BLOCK_SOURCE) && !defined(_WIN32)
     285#if HAVE_STRUCT_GROUP_SOURCE_REQ && defined(MCAST_BLOCK_SOURCE) && !defined(_WIN32) && (!defined(TARGET_OS_TV) || !TARGET_OS_TV)
    282286    /* These ones are available in the microsoft SDK, but don't seem to work
    283287     * as on linux, so just prefer the v4-only approach there for now. */
    284288    int i;