[gjs/ewlsh/nova-repl: 4/7] Update IWYU for termios.h




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

    Update IWYU for termios.h

 tools/gjs-private-iwyu.imp | 1 +
 util/console.cpp           | 1 +
 2 files changed, 2 insertions(+)
---
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]