From 31d401dec6abccab4e780a323b8536025b7bbf1c Mon Sep 17 00:00:00 2001 From: Eirik Aavitsland Date: Thu, 3 Mar 2022 12:49:40 +0100 Subject: [PATCH] Fix compilation for wasm libjpeg's internal putenv() function uses system setenv(), but that is not found when building for webassembly. Just disable the entire putenv function, since it is not used anyway. Pick-to: 6.3 6.2 5.15 Change-Id: I1eb60f31562ef4e33c656ff3b3752bef6f88fcb8 Reviewed-by: Allan Sandfeld Jensen --- src/3rdparty/libjpeg/src/jconfig.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/3rdparty/libjpeg/src/jconfig.h b/src/3rdparty/libjpeg/src/jconfig.h index 0aaa3df8e5..7982724a26 100644 --- a/src/3rdparty/libjpeg/src/jconfig.h +++ b/src/3rdparty/libjpeg/src/jconfig.h @@ -13,3 +13,5 @@ #define MEM_SRCDST_SUPPORTED 1 #define BITS_IN_JSAMPLE 8 + +#define NO_PUTENV