aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDRC <information@libjpeg-turbo.org>2024-01-16 19:30:34 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2024-01-16 19:30:34 +0000
commite822c5dbe953d45bad9731111e6d2e06991f7c97 (patch)
treec26e744ad70a3c45d33e81d86db901833c19cc33
parentb13eedbad305592addb37bdc398c404cb9182ab1 (diff)
parent4fcb3d575b6522058e38adbcd79456e224800bb6 (diff)
downloadlibjpeg-turbo-e822c5dbe953d45bad9731111e6d2e06991f7c97.tar.gz
Fix build warnings/errs w/ -DNO_GETENV/-DNO_PUTENV am: 8dba43af7a am: 4fcb3d575b
Original change: https://android-review.googlesource.com/c/platform/external/libjpeg-turbo/+/2901154 Change-Id: Icb9e14af43ab5a1c358a67788705bbd65ce2b7b0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--README.android2
-rw-r--r--jinclude.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/README.android b/README.android
index b2003e8e..36563562 100644
--- a/README.android
+++ b/README.android
@@ -13,3 +13,5 @@ backwards compatibility since it's not really costing us anything.
We `#define` these in jconfig.h rather than in Android.bp so that they're
correctly exported to any *users* (in particular, jerror.h only conditionally
defines the corresponding error codes if these `#define`s are present).
+
+Cherry-pick on 2024/01/08: https://github.com/libjpeg-turbo/libjpeg-turbo/commit/c27695a193a7cb265ef8e45c7b28bda3a71c70ce
diff --git a/jinclude.h b/jinclude.h
index e8d983ac..56e7a4b2 100644
--- a/jinclude.h
+++ b/jinclude.h
@@ -4,7 +4,7 @@
* This file was part of the Independent JPEG Group's software:
* Copyright (C) 1991-1994, Thomas G. Lane.
* libjpeg-turbo Modifications:
- * Copyright (C) 2022, D. R. Commander.
+ * Copyright (C) 2022-2023, D. R. Commander.
* For conditions of distribution and use, see the accompanying README.ijg
* file.
*
@@ -123,6 +123,8 @@ static INLINE int GETENV_S(char *buffer, size_t buffer_size, const char *name)
#else
+#include <errno.h>
+
/* This provides a similar interface to the Microsoft _putenv_s() function, but
* other than parameter validation, it has no advantages over setenv().
*/