# HG changeset patch # User diego # Date 1221311915 0 # Node ID 0d60b8b7f30b8198ec5f5f050537aef62069b909 # Parent a6afd0f2a84992f277bd5057905af7bee1f3b2a7 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 diff -r a6afd0f2a849 -r 0d60b8b7f30b ppc/check_altivec.c --- 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 #elif __AMIGAOS4__ #include