aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDRC <information@libjpeg-turbo.org>2016-10-25 13:18:01 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-10-25 13:18:01 +0000
commitba17b98af2c202ba6a1207eda83d017f8de96908 (patch)
treefbcd876737c16170c9208edc665c8f17793983cf
parent3412f0ac1821bd153d01cd0ce17688824dc6f214 (diff)
parent5c459baaf6cd30e83bfdb137b11e8ba6a64c1cd3 (diff)
downloadplatform_external_libjpeg-turbo-ba17b98af2c202ba6a1207eda83d017f8de96908.tar.gz
platform_external_libjpeg-turbo-ba17b98af2c202ba6a1207eda83d017f8de96908.tar.bz2
platform_external_libjpeg-turbo-ba17b98af2c202ba6a1207eda83d017f8de96908.zip
Fix broken build with NDK platforms < android-21 am: c8d146cb3e am: 741055ca55 am: 53c89b3c98
am: 5c459baaf6 Change-Id: I6a31b4123bd56ac55bd17090dc3d0e1dea773e16
-rw-r--r--README.android6
-rw-r--r--jmemmgr.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/README.android b/README.android
index 7914001b..d7140fe2 100644
--- a/README.android
+++ b/README.android
@@ -23,3 +23,9 @@ It is unclear why the unmodified code from upstream appends an underscore
to name. Before removing the underscore, the code failed to link because
the function names in the SIMD code did not match the callers (because of
the extra underscore).
+
+(3) jmemmgr.c
+
+Fix broken build with NDK platforms < android-21
+Cherry picked from upstream:
+https://github.com/libjpeg-turbo/libjpeg-turbo/commit/dfefba77520ded5c5fd4864e76352a5f3eb23e74 \ No newline at end of file
diff --git a/jmemmgr.c b/jmemmgr.c
index adccbdfa..b17c5c5c 100644
--- a/jmemmgr.c
+++ b/jmemmgr.c
@@ -33,6 +33,7 @@
#include "jpeglib.h"
#include "jmemsys.h" /* import the system-dependent declarations */
#include <stdint.h>
+#include <limits.h>
#ifndef NO_GETENV
#ifndef HAVE_STDLIB_H /* <stdlib.h> should declare getenv() */