$OpenBSD: patch-libretro-common_features_features_cpu_c,v 1.3 2020/04/29 14:12:08 cwen Exp $

Ensure that the undefined __mtfb() primitive is not used on powerpc, from:
https://github.com/libretro/RetroArch/pull/10383

Index: libretro-common/features/features_cpu.c
--- libretro-common/features/features_cpu.c.orig
+++ libretro-common/features/features_cpu.c
@@ -22,6 +22,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <sys/time.h>
 
 #if defined(_WIN32)
 #include <direct.h>
@@ -166,7 +167,7 @@ retro_perf_tick_t cpu_features_get_perf_counter(void)
    tv_sec     = (long)((ularge.QuadPart - epoch) / 10000000L);
    tv_usec    = (long)(system_time.wMilliseconds * 1000);
    time_ticks = (1000000 * tv_sec + tv_usec);
-#elif defined(__linux__) || defined(__QNX__) || defined(__MACH__)
+#elif defined(_POSIX_MONOTONIC_CLOCK) || defined(__QNX__) || defined(__MACH__)
    struct timespec tv = {0};
    if (ra_clock_gettime(CLOCK_MONOTONIC, &tv) == 0)
       time_ticks = (retro_perf_tick_t)tv.tv_sec * 1000000000 +
