OSDN Git Service

configure: Set _DARWIN_C_SOURCE while testing for struct ipv6_mreq
authorMartin Storsjö <martin@martin.st>
Wed, 6 Oct 2010 12:30:17 +0000 (12:30 +0000)
committerMartin Storsjö <martin@martin.st>
Wed, 6 Oct 2010 12:30:17 +0000 (12:30 +0000)
commit9fd5f39b0e77e41d8d9b813b9a17bb21533fbf64
treeea60de7e142fbb618a622f7463f1c4b1ae5f90e1
parent0ada32c37338c654d51ffc64254c722a6c8d7454
configure: Set _DARWIN_C_SOURCE while testing for struct ipv6_mreq

On OS X, this struct is only available if _DARWIN_C_SOURCE is defined,
when we have _POSIX_C_SOURCE defined. This allows the struct to be found,
enabling proper IPv6 multicast functionality on OS X.

The define is already set within the file that uses the struct. Setting it
only for this test in configure avoids having to keep it defined for the
whole build.

Originally committed as revision 25370 to svn://svn.ffmpeg.org/ffmpeg/trunk
configure