From 2ddeab979244f1e33c789c7ba9fd2bccccaf9a75 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Sat, 19 Jun 2021 01:31:43 +0000 Subject: [PATCH] games/ezquake: fix build on powerpc Same issue as on powerpc64. --- games/ezquake/files/patch-host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/games/ezquake/files/patch-host.c b/games/ezquake/files/patch-host.c index 055c1933b35fb..0506eb4589d0f 100644 --- a/games/ezquake/files/patch-host.c +++ b/games/ezquake/files/patch-host.c @@ -4,7 +4,7 @@ SYSINFO_processor_description = cpu_model; gettimeofday(&old_tp, NULL); -+#ifdef __powerpc64__ ++#ifdef __powerpc__ + __asm__ __volatile__("mfspr %%r3, 268": "=r" (old_tsc)); +#else old_tsc = rdtsc(); @@ -12,7 +12,7 @@ do { gettimeofday(&tp, NULL); } while ((tp.tv_sec - old_tp.tv_sec) * 1000000. + tp.tv_usec - old_tp.tv_usec < 1000000.); -+#ifdef __powerpc64__ ++#ifdef __powerpc__ + __asm__ __volatile__("mfspr %%r3, 268": "=r" (tsc_freq)); +#else tsc_freq = rdtsc();