[FFmpeg-devel] Compilation broken on PPC/OS X 10.4

Martin Storsjö martin
Mon Mar 8 14:57:24 CET 2010


Hi,

Since rev 22267, compilation of libavcodec/ppc/check_altivec.c is broken 
on OS X, if compiling with a 10.4 SDK. (This doesn't happen if compiling 
with the 10.5 SDK.) The error is:

/Developer/SDKs/MacOSX10.4u.sdk/usr/include/signal.h:71: error: 'NSIG' 
undeclared here (not in a function)

There's a dependency between sys/signal.h (implicitly included through 
dsputil_altivec.h) and signal.h (included through sys/sysctl.h); NSIG is 
defined in sys/signal.h, only if it's going to be used by signal.h. If the 
_POSIX_C_SOURCE defined is changed inbetween, NSIG is required without 
being defined.

The attached patch is one way of solving this, although perhaps not the 
cleanest.

Other suggestions on how to fix it, or the usual "broken platform" flames? 
:-)

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_altivec.patch
Type: text/x-diff
Size: 485 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100308/9cab026e/attachment.patch>



More information about the ffmpeg-devel mailing list