[FFmpeg-cvslog] r15306 - trunk/libavcodec/ppc/check_altivec.c
diego
subversion
Sat Sep 13 15:18:36 CEST 2008
Author: diego
Date: Sat Sep 13 15:18:35 2008
New Revision: 15306
Log:
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
Modified:
trunk/libavcodec/ppc/check_altivec.c
Modified: trunk/libavcodec/ppc/check_altivec.c
==============================================================================
--- trunk/libavcodec/ppc/check_altivec.c (original)
+++ trunk/libavcodec/ppc/check_altivec.c Sat Sep 13 15:18:35 2008
@@ -23,6 +23,7 @@
*/
#ifdef __APPLE__
+#undef _POSIX_C_SOURCE
#include <sys/sysctl.h>
#elif __AMIGAOS4__
#include <exec/exec.h>
More information about the ffmpeg-cvslog
mailing list