[x265] [PATCH] Fix PowerPC64 AltiVec code to build on *BSD

Brad Smith brad at comstyle.com
Thu Jun 1 22:37:04 UTC 2023


Swap Linux kernel header for POSIX header. Fixes building on OpenBSD & FreeBSD powerpc64. Still
builds clean on Linux / powerpc64.


diff --git a/source/common/ppc/intrapred_altivec.cpp b/source/common/ppc/intrapred_altivec.cpp
index ffdde2f92..cd3937060 100644
--- a/source/common/ppc/intrapred_altivec.cpp
+++ b/source/common/ppc/intrapred_altivec.cpp
@@ -27,7 +27,7 @@
 #include <assert.h>
 #include <math.h>
 #include <cmath>
-#include <linux/types.h>
+#include <sys/types.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdint.h>


More information about the x265-devel mailing list