changeset 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 a6afd0f2a849
children 21ab545aed8b
files ppc/check_altivec.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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>