-
Notifications
You must be signed in to change notification settings - Fork 880
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5049 from malaterre/ci20-libjpeg
libjpeg-turbo: fix compilation on mipsel
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
packages/graphics/libjpeg-turbo/patches/libjpeg-turbo-mips.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); |