summaryrefslogtreecommitdiffstats
path: root/Source/LexerParser
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2023-07-27 21:38:54 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2023-08-29 14:51:30 (GMT)
commita5f98df778ceba5c04805f5b7d109e2fc26ebfec (patch)
treeaa963651c1307dcda50aaf3d5ce255992393374e /Source/LexerParser
parent0712e3cfea60e4a3ab88f9d9ff9d4c2f39ce309b (diff)
downloadCMake-a5f98df778ceba5c04805f5b7d109e2fc26ebfec.zip
CMake-a5f98df778ceba5c04805f5b7d109e2fc26ebfec.tar.gz
CMake-a5f98df778ceba5c04805f5b7d109e2fc26ebfec.tar.bz2
Source: Fix mysterious new IWYU warnings
Diffstat (limited to 'Source/LexerParser')
-rw-r--r--Source/LexerParser/cmCTestResourceGroupsLexer.cxx4
-rw-r--r--Source/LexerParser/cmCTestResourceGroupsLexer.in.l4
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/LexerParser/cmCTestResourceGroupsLexer.cxx b/Source/LexerParser/cmCTestResourceGroupsLexer.cxx
index 85b379b..f1d351a 100644
--- a/Source/LexerParser/cmCTestResourceGroupsLexer.cxx
+++ b/Source/LexerParser/cmCTestResourceGroupsLexer.cxx
@@ -667,6 +667,10 @@ Modify cmCTestResourceGroupsLexer.cxx:
#include <cstddef>
+#ifndef _WIN32
+# include <termios.h>
+#endif
+
/*--------------------------------------------------------------------------*/
#define INITIAL 0
diff --git a/Source/LexerParser/cmCTestResourceGroupsLexer.in.l b/Source/LexerParser/cmCTestResourceGroupsLexer.in.l
index 2befa85..ac9cbaf 100644
--- a/Source/LexerParser/cmCTestResourceGroupsLexer.in.l
+++ b/Source/LexerParser/cmCTestResourceGroupsLexer.in.l
@@ -26,6 +26,10 @@ Modify cmCTestResourceGroupsLexer.cxx:
#include <cstddef>
+#ifndef _WIN32
+# include <termios.h>
+#endif
+
/*--------------------------------------------------------------------------*/
%}