[FFmpeg-devel] [PATCH] UDP fixes join multicast group on Darwin arch

Sébastien Zwickert szwickert
Mon Apr 20 10:30:41 CEST 2009


On Apr 17, 2009, at 6:10 PM, Ronald S. Bultje wrote:

> Hi,
>
> On Fri, Apr 17, 2009 at 10:25 AM, S?bastien Zwickert
> <szwickert at kezia.com> wrote:
>> I've read this archive
>> http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2008-August/051136.html 
>>  and
>> i've added the _DARWIN_C_SOURCE definition at the top of the udp.c  
>> file.
>
> Putting it on the top of a random source file seems wrong, you likely
> want to place a check in ./configure (check_cflags), preferrably in an
> actual UDP test so it's only enabled when needed (OS X) and not for
> others...

New patch in attachment that applies changes to the configure file.
I've added a test in the network check block to set -D_DARWIN_C_SOURCE  
cflag when the target_os is darwin.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: udp_multicast_darwin.patch
Type: application/octet-stream
Size: 475 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090420/67b9949d/attachment.obj>
-------------- next part --------------




Sebastien Zwickert





More information about the ffmpeg-devel mailing list