[gjs/ewlsh/nova-repl: 2/5] Update IWYU for termios.h




commit a73bcda1feeab61a6a4571b4fea4ea96badc5967
Author: Evan Welsh <contact evanwelsh com>
Date:   Sat Sep 4 00:49:55 2021 -0700

    Update IWYU for termios.h

 .gitlab-ci.yml             | 4 +---
 tools/gjs-private-iwyu.imp | 1 +
 util/console.cpp           | 1 +
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ccdd91be..5615d3e4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -253,11 +253,9 @@ iwyu:
   when: on_success
   stage: source_check
   image: registry.gitlab.gnome.org/gnome/gjs:fedora.mozjs78-debug
-  variables:
-    CONFIG_OPTS: -Db_pch=false
   script:
     - test/test-ci.sh UPSTREAM_BASE
-    - meson setup _build
+    - meson setup _build -Db_pch=false
     - include-what-you-use --version
     - ./tools/run_iwyu.sh ci-upstream-base
   only:
diff --git a/tools/gjs-private-iwyu.imp b/tools/gjs-private-iwyu.imp
index 502e6b43..842ff9fd 100644
--- a/tools/gjs-private-iwyu.imp
+++ b/tools/gjs-private-iwyu.imp
@@ -8,6 +8,7 @@
   {"include": ["<bits/types/siginfo_t.h>", "private", "<signal.h>", "public"]},
   {"include": ["<bits/types/struct_itimerspec.h>", "private", "<time.h>", "public"]},
   {"include": ["<bits/types/timer_t.h>", "private", "<sys/types.h>", "public"]},
+  {"include": ["@<bits/termios-.*>", "private", "<termios.h>", "public"]},
 
   {"include": ["@<ffi.*>", "private", "<ffi.h>", "public"]},
   {"include": ["@\"gio/.*\"", "private", "<gio/gio.h>", "public"]},
diff --git a/util/console.cpp b/util/console.cpp
index 4498d165..d2283d63 100644
--- a/util/console.cpp
+++ b/util/console.cpp
@@ -12,6 +12,7 @@
 #endif
 
 #ifdef HAVE_TERMIOS_H
+#    include <stdlib.h>
 #    include <termios.h>
 #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]