void-packages/srcpkgs/libmowgli/patches/aarch64.patch

12 lines
355 B
Diff

--- src/libmowgli/platform/cacheline.c.orig
+++ src/libmowgli/platform/cacheline.c
@@ -32,7 +32,7 @@
void
mowgli_cacheline_bootstrap(void)
{
-#ifdef MOWGLI_OS_LINUX
+#if defined(MOWGLI_OS_LINUX) && defined(_SC_LEVEL1_DCACHE_LINESIZE)
cacheline_size = sysconf(_SC_LEVEL1_DCACHE_LINESIZE);
#elif defined(MOWGLI_OS_OSX)
size_t size = sizeof(size_t);