From b873a9183c22b173c9bbacd4765a1ae39a177f07 Mon Sep 17 00:00:00 2001 From: AuxLoui Date: Mon, 13 Apr 2026 13:49:07 +0200 Subject: [PATCH] fix issue with PRIu64 on some compilers, by including sys/types.h it works correct --- src/cborpretty.c | 3 +++ src/cbortojson.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/cborpretty.c b/src/cborpretty.c index 02b5706b..0c2b1107 100644 --- a/src/cborpretty.c +++ b/src/cborpretty.c @@ -29,6 +29,9 @@ #include "compilersupport_p.h" #include "utf8_p.h" +// Include sys/types.h before inttypes.h to work around issue with +// certain versions of GCC and newlib which causes omission of PRIx64 +#include #include #include diff --git a/src/cbortojson.c b/src/cbortojson.c index 9a1cccfd..bc9b6f66 100644 --- a/src/cbortojson.c +++ b/src/cbortojson.c @@ -31,6 +31,9 @@ #include "cborinternal_p.h" #include +// Include sys/types.h before inttypes.h to work around issue with +// certain versions of GCC and newlib which causes omission of PRIx64 +#include #include #include #include