From 4d1d6080858175a9f92da43ab4d66d321fb5a03e Mon Sep 17 00:00:00 2001 From: zhangxiaoyu Date: Tue, 15 Nov 2022 17:27:08 +0800 Subject: [PATCH] add redefine for stdin stdout stderr when using musl Signed-off-by: zhangxiaoyu --- src/ocispec/json_common.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ocispec/json_common.h b/src/ocispec/json_common.h index e2597587..11f4a76b 100644 --- a/src/ocispec/json_common.h +++ b/src/ocispec/json_common.h @@ -15,6 +15,15 @@ extern "C" { #undef linux +#ifdef __MUSL__ +#undef stdin +#undef stdout +#undef stderr +#define stdin stdin +#define stdout stdout +#define stderr stderr +#endif + // options to report error if there is unknown key found in json #define OPT_PARSE_STRICT 0x01 // options to generate all key and value