git: 2ddeab979244 - main - games/ezquake: fix build on powerpc
Piotr Kubaj
pkubaj at FreeBSD.org
Sat Jun 19 01:31:50 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2ddeab979244f1e33c789c7ba9fd2bccccaf9a75
commit 2ddeab979244f1e33c789c7ba9fd2bccccaf9a75
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-06-19 01:31:43 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-06-19 01:31:43 +0000
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 055c1933b35f..0506eb4589d0 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();
More information about the dev-commits-ports-all
mailing list