diff options
author | David Conrad <lessen42@gmail.com> | 2008-09-13 13:18:35 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-09-13 13:18:35 +0000 |
commit | 7f0d242b14e3dafade0e910d1031d2774da005a1 (patch) | |
tree | f1d3e0a1de2cba7d9088d19061e90097a52852bf /libavcodec/ppc | |
parent | 43c164788cc951e48a9c19eaf1a2539fb59a26fc (diff) | |
download | ffmpeg-streaming-7f0d242b14e3dafade0e910d1031d2774da005a1.zip ffmpeg-streaming-7f0d242b14e3dafade0e910d1031d2774da005a1.tar.gz |
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
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/check_altivec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/ppc/check_altivec.c b/libavcodec/ppc/check_altivec.c index 932c218..f88b276 100644 --- a/libavcodec/ppc/check_altivec.c +++ b/libavcodec/ppc/check_altivec.c @@ -23,6 +23,7 @@ */ #ifdef __APPLE__ +#undef _POSIX_C_SOURCE #include <sys/sysctl.h> #elif __AMIGAOS4__ #include <exec/exec.h> |