From 28eaeaf4d41ac600ad9889aec96290e8a252d58b Mon Sep 17 00:00:00 2001 From: ngoto Date: Mon, 18 Dec 2017 16:17:17 +0000 Subject: Support C89 if possible * addr2line.c: Because stdbool.h is a C99 feature, compile error occurs with some old compilers without specifying C99 options. Fix compile error with Oracle Solaris Studio 12.4 on Solaris 10. [Bug #14200] [ruby-dev:50366] * missing/stdbool.h: Alternative of stdbool.h for C89 compilers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- addr2line.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'addr2line.c') diff --git a/addr2line.c b/addr2line.c index 44ccff0d0d..09fcc3c225 100644 --- a/addr2line.c +++ b/addr2line.c @@ -13,9 +13,14 @@ #include "addr2line.h" #include -#include #include +#ifdef HAVE_STDBOOL_H +#include +#else +#include "missing/stdbool.h" +#endif + #ifdef USE_ELF #include -- cgit v1.2.3