[FFmpeg-devel] [PATCH] udp: Define _DARWIN_C_SOURCE
Martin Storsjö
martin
Tue Oct 5 18:37:21 CEST 2010
On Tue, 5 Oct 2010, Luca Barbato wrote:
> On 10/5/10 3:20 PM, Martin Storsjo wrote:
> > This is required in order to get the IP_MULTICAST_TTL define.
> >
> > _BSD_SOURCE is already defined for similar reasons.
>
> Shouldn't hurt.
Applied.
I investigated related matters a bit more. We also check for struct
ipv6_mreq in configure, which fails, since ipv6_mreq requires
_DARWIN_C_SOURCE to be found, too.
And I guess we don't want to enable any such define globally for the whole
build. Should we force users to manually specify _DARWIN_C_SOURCE via
--extra-cflags if they really want this, or is there any way to enable
this define only for one particular test in configure, where checking for
ipv6_mreq?
// Martin
More information about the ffmpeg-devel
mailing list