[Lldb-commits] [lldb] r292931 - Include termios.h for definition of struct winsize

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 24 06:05:24 PST 2017


Author: labath
Date: Tue Jan 24 08:05:23 2017
New Revision: 292931

URL: http://llvm.org/viewvc/llvm-project?rev=292931&view=rev
Log:
Include termios.h for definition of struct winsize

On android API level 9 the header does not get included transitively.
Include it directly.

As far as I can see, all non-windows platforms should have this header.
If that turns out to be incorrect, we can add some ifdefs around that.

Modified:
    lldb/trunk/source/Host/common/File.cpp

Modified: lldb/trunk/source/Host/common/File.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/File.cpp?rev=292931&r1=292930&r2=292931&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/File.cpp (original)
+++ lldb/trunk/source/Host/common/File.cpp Tue Jan 24 08:05:23 2017
@@ -19,6 +19,7 @@
 #include "lldb/Host/windows/windows.h"
 #else
 #include <sys/ioctl.h>
+#include <termios.h>
 #endif
 
 #include "llvm/Support/ConvertUTF.h"




More information about the lldb-commits mailing list