[vlc-commits] Fix compilation due to missing headers on OpenBSD/powerpc
Brad Smith
git at videolan.org
Fri Feb 10 22:35:07 CET 2012
vlc | branch: master | Brad Smith <brad at comstyle.com> | Fri Feb 10 16:03:38 2012 -0500| [6f8c945b940ca5c398d2fb20e1ee4983e1c9feb4] | 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 <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6f8c945b940ca5c398d2fb20e1ee4983e1c9feb4
---
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 d4e762c..c6963fb 100644
--- a/src/misc/cpu.c
+++ b/src/misc/cpu.c
@@ -50,6 +50,12 @@
#include <sys/sysctl.h>
#endif
+#if defined(__OpenBSD__) && defined(__powerpc__)
+#include <sys/param.h>
+#include <sys/sysctl.h>
+#include <machine/cpu.h>
+#endif
+
static uint32_t cpu_flags;
#if defined (__i386__) || defined (__x86_64__) || defined (__powerpc__) \
More information about the vlc-commits
mailing list