[Lldb-commits] [lldb] r277997 - Remove _isatty from Android.h
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 8 05:26:58 PDT 2016
Author: labath
Date: Mon Aug 8 07:26:57 2016
New Revision: 277997
URL: http://llvm.org/viewvc/llvm-project?rev=277997&view=rev
Log:
Remove _isatty from Android.h
it is just #defined to isatty anyway, which lldb already knows how to use.
Modified:
lldb/trunk/include/lldb/Host/android/Android.h
lldb/trunk/source/Host/common/File.cpp
Modified: lldb/trunk/include/lldb/Host/android/Android.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/android/Android.h?rev=277997&r1=277996&r2=277997&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/android/Android.h (original)
+++ lldb/trunk/include/lldb/Host/android/Android.h Mon Aug 8 07:26:57 2016
@@ -14,7 +14,6 @@
#include <string>
#include <errno.h>
-#define _isatty isatty
#define SYS_tgkill __NR_tgkill
namespace std
Modified: lldb/trunk/source/Host/common/File.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/File.cpp?rev=277997&r1=277996&r2=277997&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/File.cpp (original)
+++ lldb/trunk/source/Host/common/File.cpp Mon Aug 8 07:26:57 2016
@@ -1010,7 +1010,7 @@ File::CalculateInteractiveAndTerminal ()
{
m_is_interactive = eLazyBoolNo;
m_is_real_terminal = eLazyBoolNo;
-#if (defined(_WIN32) || defined(__ANDROID_NDK__))
+#if defined(_WIN32)
if (_isatty(fd))
{
m_is_interactive = eLazyBoolYes;
More information about the lldb-commits
mailing list