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 #include +#if HAVE_TERMIOS_H +#include +#endif #endif static void 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 /* __unix__ */ #endif +#if HAVE_SYS_WAIT_H +#include +#endif #include #include