[FFmpeg-devel] [PATCH 2/4] Define __EXTENSIONS__ to enable struct ip_mreq access on OpenSolaris.

Diego 'Flameeyes' Pettenò flameeyes
Sun Sep 28 23:01:52 CEST 2008


"Roman V. Shaposhnik" <rvs at sun.com> writes:

> You shouldn't really tinker with __* stuff directly. IIRC, there's
> a more standard way of enabling ip_mreq (something along the lines
> of defining a proper combination of XPG* and POSIX version). I'd
> be very surprised if __EXTENSIONS__ were the only way to get what
> you want.

struct ip_mreq definition is protected by

#if !defined(_XPG4_2) || defined(__EXTENSIONS__)

Since FFmpeg builds with C99 and requires explicitly POSIX.1-2001
(-D_POSIX_C_SOURCE=200112L), as soon as _XOPEN_SOURCE is defined,
_XPG4_2 is also enabled; since there are a few cases where _XOPEN_SOURCE
is used, and it might well be that more will be introduced, it seems to
me the most solid option, to define __EXTENSIONS__, rather than relying
on _XOPEN_SOURCE *not* being defined.

Of course if you have a better idea...

-- 
Diego "Flameeyes" Petten?
http://blog.flameeyes.eu/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080928/49831108/attachment.pgp>



More information about the ffmpeg-devel mailing list