Skip to content

Commit

Permalink
Merge pull request #121 from DawningRain/main
Browse files Browse the repository at this point in the history
add redefine for stdin stdout stderr when using musl
  • Loading branch information
giuseppe authored Nov 18, 2022
2 parents 23aed83 + 4d1d608 commit 523748f
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 523748f

Please sign in to comment.