[vlc-devel] [PATCH] Fix compilation due to missing headers on OpenBSD/powerpc

Brad Smith brad at comstyle.com
Fri Feb 10 22:03:38 CET 2012

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.

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>
+#if defined(__OpenBSD__) && defined(__powerpc__)
+#include <sys/param.h>
+#include <sys/sysctl.h>
+#include <machine/cpu.h>
 static uint32_t cpu_flags;
 #if defined (__i386__) || defined (__x86_64__) || defined (__powerpc__) \

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the vlc-devel mailing list