aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libskiasharp/files/patch-src_core_SkCpu.cpp
blob: 44348f5063028568dfe352ff8ef79b997dfb4f8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/core/SkCpu.cpp.orig	2025-01-20 04:43:13 UTC
+++ src/core/SkCpu.cpp
@@ -10,6 +10,17 @@
 #include "include/private/SkOnce.h"
 #include "src/core/SkCpu.h"
 
+#ifdef __FreeBSD__
+#include <sys/auxv.h>
+static unsigned long getauxval(unsigned long aux) {
+    unsigned long val = 0;
+
+    elf_aux_info((int)aux, &val, sizeof aux);
+
+    return val;
+}
+#endif
+
 #if defined(SK_CPU_X86)
     #if defined(_MSC_VER)
         #include <intrin.h>