vlc/vlc-2.0 | branch: master | Brad Smith <[email protected]> | Fri Feb 10 16:03:38 2012 -0500| [78f8ef0787f09fd7bb36787a986e0c9525247b8d] | committer: Jean-Baptiste Kempf
Fix compilation due to missing headers on OpenBSD/powerpc When the code for detecting the number of CPUs present was moved the headers necessary to compile the AltiVec detection code on OpenBSD/powerpc was mistakenly removed so this puts the headers back as appropriate. Signed-off-by: Jean-Baptiste Kempf <[email protected]> (cherry picked from commit 6f8c945b940ca5c398d2fb20e1ee4983e1c9feb4) > http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=78f8ef0787f09fd7bb36787a986e0c9525247b8d --- src/misc/cpu.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/misc/cpu.c b/src/misc/cpu.c index 7c28b25..6999bc1 100644 --- a/src/misc/cpu.c +++ b/src/misc/cpu.c @@ -47,6 +47,12 @@ #include <sys/sysctl.h> #endif +#if defined(__OpenBSD__) && defined(__powerpc__) +#include <sys/param.h> +#include <sys/sysctl.h> +#include <machine/cpu.h> +#endif + #include "libvlc.h" static uint32_t cpu_flags; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
