Skip to content

Commit

Permalink
libjpeg-turbo: fix compilation on mipsel
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Malaterre <malat@debian.org>
  • Loading branch information
malaterre committed May 19, 2017
1 parent c9937b1 commit 4a6c3bf
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/graphics/libjpeg-turbo/patches/libjpeg-turbo-mips.patch
@@ -0,0 +1,21 @@
From: =?utf-8?q?Ond=C5=99ej_Sur=C3=BD?= <ondrej@sury.org>
Date: Thu, 20 Oct 2016 15:51:10 +0200
Subject: Declare env on MIPS on first use (Courtesy of Aurelien Jarno)

---
simd/jsimd_mips.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/simd/jsimd_mips.c b/simd/jsimd_mips.c
index 63b8115..a371a32 100644
--- a/simd/jsimd_mips.c
+++ b/simd/jsimd_mips.c
@@ -79,7 +79,7 @@ init_simd (void)
#endif

/* Force different settings through environment variables */
- env = getenv("JSIMD_FORCEDSPR2");
+ char *env = getenv("JSIMD_FORCEDSPR2");
if ((env != NULL) && (strcmp(env, "1") == 0))
simd_support = JSIMD_MIPS_DSPR2;
env = getenv("JSIMD_FORCENONE");

0 comments on commit 4a6c3bf

Please sign in to comment.