3 commits - meson.build perf/cairo-perf-print.c test/pdf-structure.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Oct 13 22:19:16 UTC 2024


 meson.build             |    1 +
 perf/cairo-perf-print.c |    3 +++
 test/pdf-structure.c    |    3 +++
 3 files changed, 7 insertions(+)

New commits:
commit 5111be12d470cf1b8da05ef061ed9069f5c87d01
Merge: 21e6b2c6a 78f7dbcba
Author: Emmanuele Bassi <ebassi at gmail.com>
Date:   Sun Oct 13 22:19:15 2024 +0000

    Merge branch 'solaris' into 'master'
    
    Fix cairo-perf-print & pdf-structure test builds on Solaris
    
    See merge request cairo/cairo!599

commit 78f7dbcba8c068d5383de9a8aec82d7bb3cfdda3
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Oct 13 11:06:18 2024 -0700

    Fix cairo-perf-print build on Solaris
    
    Adds include of <termios.h> if system has it, in order to fix:
    
    ../perf/cairo-perf-print.c: In function ‘report_print’:
    ../perf/cairo-perf-print.c:62:28: error: storage size of ‘ws’ isn’t known
       62 |             struct winsize ws;
          |                            ^~
    ../perf/cairo-perf-print.c:64:26: error: ‘TIOCGWINSZ’ undeclared
     (first use in this function)
       64 |             if(ioctl(fd, TIOCGWINSZ, &ws) == 0 ) {
          |                          ^~~~~~~~~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

diff --git a/meson.build b/meson.build
index e45e441f3..162b2927c 100644
--- a/meson.build
+++ b/meson.build
@@ -138,6 +138,7 @@ check_headers = [
   ['sys/ioctl.h'],
   ['intsafe.h'],
   ['alloca.h'],
+  ['termios.h'],
 ]
 
 check_types = [
diff --git a/perf/cairo-perf-print.c b/perf/cairo-perf-print.c
index ab1440f55..e9c493fa3 100644
--- a/perf/cairo-perf-print.c
+++ b/perf/cairo-perf-print.c
@@ -43,6 +43,9 @@
 #if USE_TERMINAL_SIZE
 #include <unistd.h>
 #include <sys/ioctl.h>
+#if HAVE_TERMIOS_H
+#include <termios.h>
+#endif
 #endif
 
 static void
commit 936f20c37e6152354f74d0304eaa029f35c3b45d
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Oct 13 11:01:59 2024 -0700

    Fix pdf-structure test build on Solaris
    
    Adds include of <sys/wait.h> if system has it, in order to fix:
    
    ../test/pdf-structure.c: In function ‘check_pdf’:
    ../test/pdf-structure.c:551:21: error: implicit declaration of function
     ‘WIFEXITED’ [-Wimplicit-function-declaration]
      551 |                     WIFEXITED (ret) ? WEXITSTATUS (ret) : -1);
          |                     ^~~~~~~~~
    ../test/pdf-structure.c:551:39: error: implicit declaration of function
     ‘WEXITSTATUS’ [-Wimplicit-function-declaration]
      551 |                     WIFEXITED (ret) ? WEXITSTATUS (ret) : -1);
          |                                       ^~~~~~~~~~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

diff --git a/test/pdf-structure.c b/test/pdf-structure.c
index a9125d2b7..a12d0305f 100644
--- a/test/pdf-structure.c
+++ b/test/pdf-structure.c
@@ -33,6 +33,9 @@
 #ifdef HAVE_UNISTD_H
 #include <unistd.h> /* __unix__ */
 #endif
+#if HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
 
 #include <cairo.h>
 #include <cairo-pdf.h>


More information about the cairo-commit mailing list