Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
7851:a6afd0f2a849 | 7852:0d60b8b7f30b |
---|---|
21 * @file check_altivec.c | 21 * @file check_altivec.c |
22 * Checks for AltiVec presence. | 22 * Checks for AltiVec presence. |
23 */ | 23 */ |
24 | 24 |
25 #ifdef __APPLE__ | 25 #ifdef __APPLE__ |
26 #undef _POSIX_C_SOURCE | |
26 #include <sys/sysctl.h> | 27 #include <sys/sysctl.h> |
27 #elif __AMIGAOS4__ | 28 #elif __AMIGAOS4__ |
28 #include <exec/exec.h> | 29 #include <exec/exec.h> |
29 #include <interfaces/exec.h> | 30 #include <interfaces/exec.h> |
30 #include <proto/exec.h> | 31 #include <proto/exec.h> |