From: Philipp Storz Date: Mon, 6 Apr 2020 19:50:27 +0000 (+0200) Subject: Make ccache build on Solaris 11.4 (#572) X-Git-Tag: v4.0~554 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=058754ba3eb09ed474fbd234c4ef886ffa836e23;p=thirdparty%2Fccache.git Make ccache build on Solaris 11.4 (#572) These changes enable building on Oracle Solaris 11.4 for both i386 and sparc. --- diff --git a/m4/feature_macros.m4 b/m4/feature_macros.m4 index 05d3e4933..e51adc1ac 100644 --- a/m4/feature_macros.m4 +++ b/m4/feature_macros.m4 @@ -119,6 +119,8 @@ then AC_DEFINE(_XOPEN_SOURCE, 500, Define to the level of X/Open that your system supports) ;; + SunOS/5.11) + ;; *) AC_DEFINE(_XOPEN_SOURCE, 700, Define to the level of X/Open that your system supports) diff --git a/src/ProgressBar.cpp b/src/ProgressBar.cpp index a155fa9b0..63bf25d09 100644 --- a/src/ProgressBar.cpp +++ b/src/ProgressBar.cpp @@ -27,6 +27,10 @@ # include #endif +#ifdef __sun +# include +#endif + namespace { const size_t k_max_width = 120;