aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/fbsd-duckstation/files/patch-src-util-platform_misc_unix.cpp
diff options
context:
space:
mode:
authorGanael LAPLANCHE <martymac@FreeBSD.org>2024-12-04 08:44:00 +0100
committerGanael LAPLANCHE <martymac@FreeBSD.org>2024-12-04 08:44:00 +0100
commitc2d6cbb076ade911ef923ff95d90ec979abbc937 (patch)
tree00b19cbb10c45935066f5d01248d16889c8fc999 /emulators/fbsd-duckstation/files/patch-src-util-platform_misc_unix.cpp
parente25415d03480c26d1a2c5f9d0c3d4e020a5364e1 (diff)
emulators/duckstation: Rename to fbsd-duckstation
Follow developer's will (expressed in private) to emphasize our port includes local patches and does not reflect the exact version of the original software.
Diffstat (limited to 'emulators/fbsd-duckstation/files/patch-src-util-platform_misc_unix.cpp')
-rw-r--r--emulators/fbsd-duckstation/files/patch-src-util-platform_misc_unix.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/emulators/fbsd-duckstation/files/patch-src-util-platform_misc_unix.cpp b/emulators/fbsd-duckstation/files/patch-src-util-platform_misc_unix.cpp
new file mode 100644
index 000000000000..68e543b0fdaa
--- /dev/null
+++ b/emulators/fbsd-duckstation/files/patch-src-util-platform_misc_unix.cpp
@@ -0,0 +1,20 @@
+--- src/util/platform_misc_unix.cpp.orig 2024-06-14 05:59:32 UTC
++++ src/util/platform_misc_unix.cpp
+@@ -134,6 +134,7 @@ size_t PlatformMisc::GetRuntimeCacheLineSize()
+
+ size_t PlatformMisc::GetRuntimeCacheLineSize()
+ {
++#if defined(__linux__)
+ int l1i = sysconf(_SC_LEVEL1_DCACHE_LINESIZE);
+ int l1d = sysconf(_SC_LEVEL1_ICACHE_LINESIZE);
+ int res = (l1i > l1d) ? l1i : l1d;
+@@ -152,6 +153,9 @@ size_t PlatformMisc::GetRuntimeCacheLineSize()
+ }
+
+ return (res > 0) ? static_cast<size_t>(res) : 0;
++#else
++ return HOST_CACHE_LINE_SIZE;
++#endif
+ }
+
+ bool PlatformMisc::PlaySoundAsync(const char* path)