$NetBSD: patch-aom__ports_ppc__cpudetect.c,v 1.3 2022/05/17 21:44:11 nia Exp $ Make this at least build on NetBSD. So far no dynamic CPU feature detection on NetBSD. --- aom_ports/ppc_cpudetect.c.orig 2022-02-15 07:20:42.000000000 +0000 +++ aom_ports/ppc_cpudetect.c @@ -12,14 +12,16 @@ #include #include #include +#ifdef __linux #include #include +#endif #include "config/aom_config.h" #include "aom_ports/ppc.h" -#if CONFIG_RUNTIME_CPU_DETECT +#if (CONFIG_RUNTIME_CPU_DETECT && defined(__linux)) static int cpu_env_flags(int *flags) { char *env; env = getenv("AOM_SIMD_CAPS");