Skip to content

Commit

Permalink
add redefine for stdin stdout stderr when using musl
Browse files Browse the repository at this point in the history
Signed-off-by: zhangxiaoyu <[email protected]>
  • Loading branch information
DawningRain committed Nov 15, 2022
1 parent 23aed83 commit 4d1d608
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ocispec/json_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d1d608

Please sign in to comment.