diff options
| author | Masataka Pocke Kuwabara <kuwabara@pocke.me> | 2025-01-01 01:02:48 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-01-02 16:40:14 +0000 |
| commit | 2f0674478bebce3828cf3128b4a27b4e67e00114 (patch) | |
| tree | f3d341cbbe40940d643db44405f826b01f4a96d6 | |
| parent | d67d1530a88fcc19c355ff79fccb165b623a48f1 (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.h | 3 |
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> /** |
