void-packages/srcpkgs/libmowgli/patches/aarch64.patch
Christian Neukirchen 08d254acd2 libmowgli: update to 2.1.0.
Moved to GitHub.
2016-10-17 17:05:30 +02:00

11 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);