diff options
Diffstat (limited to 'package/openal/0003-Properly-check-if-proc-cpuinfo-opened.patch')
-rw-r--r-- | package/openal/0003-Properly-check-if-proc-cpuinfo-opened.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/openal/0003-Properly-check-if-proc-cpuinfo-opened.patch b/package/openal/0003-Properly-check-if-proc-cpuinfo-opened.patch new file mode 100644 index 0000000000..60a93c01e2 --- /dev/null +++ b/package/openal/0003-Properly-check-if-proc-cpuinfo-opened.patch @@ -0,0 +1,24 @@ +From c3c283a0b5d0130afafaa2a5b6ce6fbc30b6e6a1 Mon Sep 17 00:00:00 2001 +From: Chris Robinson <chris.kcat@gmail.com> +Date: Thu, 8 Sep 2016 02:02:09 -0700 +Subject: [PATCH] Properly check if /proc/cpuinfo opened + +[Upstream commit: https://github.com/kcat/openal-soft/commit/c3c283a0b5d0130afafaa2a5b6ce6fbc30b6e6a1] +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +--- + Alc/helpers.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Alc/helpers.c b/Alc/helpers.c +index 4ffda46c..26ed535a 100644 +--- a/Alc/helpers.c ++++ b/Alc/helpers.c +@@ -234,7 +234,7 @@ void FillCPUCaps(ALuint capfilter) + #endif + #ifdef HAVE_NEON + FILE *file = fopen("/proc/cpuinfo", "rt"); +- if(file) ++ if(!file) + ERR("Failed to open /proc/cpuinfo, cannot check for NEON support\n"); + else + { |