git: 1ba955a74ecf - main - mes/libretro-o2em: fix build on powerpc*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 31 May 2022 03:13:20 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=1ba955a74ecf71fa1652d35465632256a98cde17 commit 1ba955a74ecf71fa1652d35465632256a98cde17 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-05-31 03:05:55 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-05-31 03:05:55 +0000 mes/libretro-o2em: fix build on powerpc* libretro-common/features/features_cpu.c:50:10: fatal error: 'ppu_intrinsics.h' file not found --- .../patch-libretro-common_features_features__cpu.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/games/libretro-o2em/files/patch-libretro-common_features_features__cpu.c b/games/libretro-o2em/files/patch-libretro-common_features_features__cpu.c new file mode 100644 index 000000000000..661f6ec2b4c5 --- /dev/null +++ b/games/libretro-o2em/files/patch-libretro-common_features_features__cpu.c @@ -0,0 +1,20 @@ +--- libretro-common/features/features_cpu.c.orig 2022-02-01 14:08:50 UTC ++++ libretro-common/features/features_cpu.c +@@ -46,7 +46,7 @@ + #if defined(_XBOX360) + #include <PPCIntrinsics.h> + #elif !defined(__MACH__) && (defined(__POWERPC__) || defined(__powerpc__) || defined(__ppc__) || defined(__PPC64__) || defined(__powerpc64__)) +-#ifndef _PPU_INTRINSICS_H ++#if !defined(_PPU_INTRINSICS_H) && defined(__linux__) + #include <ppu_intrinsics.h> + #endif + #elif defined(_POSIX_MONOTONIC_CLOCK) || defined(ANDROID) || defined(__QNX__) || defined(DJGPP) +@@ -175,7 +175,7 @@ retro_perf_tick_t cpu_features_get_perf_counter(void) + time_ticks = (1000000 * tv_sec + tv_usec); + #elif defined(GEKKO) + time_ticks = gettime(); +-#elif !defined(__MACH__) && (defined(_XBOX360) || defined(__powerpc__) || defined(__ppc__) || defined(__POWERPC__) || defined(__PSL1GHT__) || defined(__PPC64__) || defined(__powerpc64__)) ++#elif !defined(__MACH__) && defined(_XBOX360) + time_ticks = __mftb(); + #elif (defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK > 0) || defined(__QNX__) || defined(ANDROID) + struct timespec tv = {0};