]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Make ccache build on Solaris 11.4 (#572)
authorPhilipp Storz <philipp.storz@bareos.com>
Mon, 6 Apr 2020 19:50:27 +0000 (21:50 +0200)
committerGitHub <noreply@github.com>
Mon, 6 Apr 2020 19:50:27 +0000 (21:50 +0200)
These changes enable building on Oracle Solaris 11.4 for both i386 and sparc.

m4/feature_macros.m4
src/ProgressBar.cpp

index 05d3e493336b9f32abf8d3e21524a203880c50ad..e51adc1ac213811a3c03266ec0be6d072fddbcc0 100644 (file)
@@ -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)
index a155fa9b0a5bebae425c70be4f44cea6c96f37cd..63bf25d09620fe79af9696856b50335610f40860 100644 (file)
 #  include <sys/ioctl.h>
 #endif
 
+#ifdef __sun
+#  include <termios.h>
+#endif
+
 namespace {
 
 const size_t k_max_width = 120;