Skip to content

Commit c628563

Browse files
authored
Merge pull request #3360 from pocke/Fix_cross_compile_issue_with_newlib_on_Ubuntu_24_04
Fix cross-compile issue with newlib on Ubuntu 24.04
2 parents 7262d09 + 61ebe51 commit c628563

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/prism/defines.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
* some platforms they aren't included unless this is already defined.
2424
*/
2525
#define __STDC_FORMAT_MACROS
26+
// Include sys/types.h before inttypes.h to work around issue with
27+
// certain versions of GCC and newlib which causes omission of PRIx64
28+
#include <sys/types.h>
2629
#include <inttypes.h>
2730

2831
/**

0 commit comments

Comments
 (0)