diff ppc/check_altivec.c @ 7852:0d60b8b7f30b libavcodec

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
author diego
date Sat, 13 Sep 2008 13:18:35 +0000
parents c93570aeb3eb
children 47717d5239fa
line wrap: on
line diff
--- a/ppc/check_altivec.c	Fri Sep 12 14:33:35 2008 +0000
+++ b/ppc/check_altivec.c	Sat Sep 13 13:18:35 2008 +0000
@@ -23,6 +23,7 @@
  */
 
 #ifdef __APPLE__
+#undef _POSIX_C_SOURCE
 #include <sys/sysctl.h>
 #elif __AMIGAOS4__
 #include <exec/exec.h>