From: David Conrad Date: Sat, 13 Sep 2008 13:18:35 +0000 (+0000) Subject: Fix compilation on Mac OS X 10.4: Defining _POSIX_C_SOURCE hides the u_char & X-Git-Tag: v0.5~2534 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7f0d242b14e3dafade0e910d1031d2774da005a1;p=coroid%2Flibav_saccubus.git Fix compilation on Mac OS X 10.4: Defining _POSIX_C_SOURCE hides the u_char & similar typedefs that sysctl.h needs. Since sysctl() itself isn't POSIX undefining _POSIX_C_SOURCE for check_altivec.c seems the best way to fix this. patch by David Conrad lessen42 at gmail com Originally committed as revision 15306 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/ppc/check_altivec.c b/libavcodec/ppc/check_altivec.c index 932c21803..f88b27688 100644 --- a/libavcodec/ppc/check_altivec.c +++ b/libavcodec/ppc/check_altivec.c @@ -23,6 +23,7 @@ */ #ifdef __APPLE__ +#undef _POSIX_C_SOURCE #include #elif __AMIGAOS4__ #include