diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
commit | 623ee73d661e5ed8475cb264511f683407d87365 (patch) | |
tree | 993eb27c93ec7a2d2d19550300d888fc1fed9e69 /dev-libs/libmowgli/files | |
parent | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff) |
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'dev-libs/libmowgli/files')
-rw-r--r-- | dev-libs/libmowgli/files/libmowgli-2.1.3-cacheline-Ensure-sysconf-var-is-defined-before-use.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-libs/libmowgli/files/libmowgli-2.1.3-cacheline-Ensure-sysconf-var-is-defined-before-use.patch b/dev-libs/libmowgli/files/libmowgli-2.1.3-cacheline-Ensure-sysconf-var-is-defined-before-use.patch new file mode 100644 index 000000000000..ff070e1d00ed --- /dev/null +++ b/dev-libs/libmowgli/files/libmowgli-2.1.3-cacheline-Ensure-sysconf-var-is-defined-before-use.patch @@ -0,0 +1,25 @@ +From 2b8892fe2ca51ef0334b08babad0fa9d689087c0 Mon Sep 17 00:00:00 2001 +From: "A. Wilcox" <AWilcox@Wilcox-Tech.com> +Date: Wed, 27 Sep 2017 01:42:33 -0500 +Subject: [PATCH] cacheline: Ensure sysconf var is defined before use on Linux + +--- + src/libmowgli/platform/cacheline.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/libmowgli/platform/cacheline.c b/src/libmowgli/platform/cacheline.c +index 90c803f..7651588 100644 +--- a/src/libmowgli/platform/cacheline.c ++++ b/src/libmowgli/platform/cacheline.c +@@ -32,7 +32,7 @@ size_t cacheline_size; + 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); +-- +2.24.1 + |