summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--prism/defines.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/prism/defines.h b/prism/defines.h
index f7bb2120c4..e25f042699 100644
--- a/prism/defines.h
+++ b/prism/defines.h
@@ -23,6 +23,9 @@
* some platforms they aren't included unless this is already defined.
*/
#define __STDC_FORMAT_MACROS
+// Include sys/types.h before inttypes.h to work around issue with
+// certain versions of GCC and newlib which causes omission of PRIx64
+#include <sys/types.h>
#include <inttypes.h>
/**