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
This commit is contained in:
Rosen Penev 2019-08-21 02:59:09 -07:00 committed by Alexander Alekhin
parent c5e9bbe4f3
commit 58ca013b90

View File

@ -17,6 +17,12 @@
#if !defined(JAS_WIN_MSVC_BUILD) #if !defined(JAS_WIN_MSVC_BUILD)
/* A configure-based build is being used. */ /* A configure-based build is being used. */
#include <stdio.h>
// uClibc-ng workaround: https://github.com/opencv/opencv/pull/15279
#ifndef L_tmpnam
#define L_tmpnam 20
#endif
/* Extra debugging support */ /* Extra debugging support */