summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/TTYState.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/tools/debugserver/source/TTYState.h')
-rw-r--r--lldb/tools/debugserver/source/TTYState.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/tools/debugserver/source/TTYState.h b/lldb/tools/debugserver/source/TTYState.h
index 7d26f5ec004..c01d5125543 100644
--- a/lldb/tools/debugserver/source/TTYState.h
+++ b/lldb/tools/debugserver/source/TTYState.h
@@ -17,8 +17,6 @@
#include <termios.h>
#include <stdint.h>
-#include "llvm/ADT/STLExtras.h"
-
class TTYState
{
public:
@@ -52,7 +50,7 @@ public:
bool GetState(uint32_t idx, int fd, bool saveProcessGroup);
bool SetState(uint32_t idx) const;
- uint32_t NumStates() const { return llvm::array_lengthof(m_ttystates); }
+ uint32_t NumStates() const { return sizeof(m_ttystates)/sizeof(TTYState); }
bool ValidStateIndex(uint32_t idx) const { return idx < NumStates(); }
protected:
@@ -60,4 +58,4 @@ protected:
TTYState m_ttystates[2];
};
-#endif
+#endif \ No newline at end of file
OpenPOWER on IntegriCloud