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

Fangrui Song maskray at google.com
Sat Sep 16 19:03:42 UTC 2023


On Sat, Sep 16, 2023 at 11:32 AM Brad Smith <brad at comstyle.com> wrote:
>
> ping ping.
>
> On 2023-08-05 8:28 p.m., Brad Smith wrote:
> > ping.
> >
> > On 2023-06-01 6:37 p.m., Brad Smith wrote:
> >> 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>
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel

FWIW: I have tested that x265 with this patch builds on a POWER Linux machine.
It would be nice to see this merged.


-- 
宋方睿


More information about the x265-devel mailing list