summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasataka Pocke Kuwabara <[email protected]>2025-01-01 01:02:48 +0900
committergit <[email protected]>2025-01-02 16:40:14 +0000
commit2f0674478bebce3828cf3128b4a27b4e67e00114 (patch)
treef3d341cbbe40940d643db44405f826b01f4a96d6
parentd67d1530a88fcc19c355ff79fccb165b623a48f1 (diff)
[ruby/prism] Fix cross-compile issue with newlib on Ubuntu 24.04
https://github.com/ruby/prism/commit/61ebe51233
-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>
/**