kumquat-buildroot/package/openal/0003-Properly-check-if-proc-cpuinfo-opened.patch

25 lines
825 B
Diff
Raw Normal View History

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
{