From 58ca013b90e3ddc74917f60a9630ac8e9c08f4a4 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 21 Aug 2019 02:59:09 -0700 Subject: [PATCH] Merge pull request #15279 from neheb:patch-1 * jas_stream: Add definition for L_tmpnam if missing uClibc-ng for some reason does not provide a definition when some deprecated APIs are disabled. Value taken from the musl libc. * 3rdparty: move uClibc-ng workaround into config file --- 3rdparty/libjasper/jasper/jas_config.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/3rdparty/libjasper/jasper/jas_config.h b/3rdparty/libjasper/jasper/jas_config.h index 987fb81467..39f1424b9d 100644 --- a/3rdparty/libjasper/jasper/jas_config.h +++ b/3rdparty/libjasper/jasper/jas_config.h @@ -17,6 +17,12 @@ #if !defined(JAS_WIN_MSVC_BUILD) /* A configure-based build is being used. */ +#include + +// uClibc-ng workaround: https://github.com/opencv/opencv/pull/15279 +#ifndef L_tmpnam +#define L_tmpnam 20 +#endif /* Extra debugging support */