diff options
author | Greg Clayton <gclayton@apple.com> | 2011-02-05 06:41:57 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-02-05 06:41:57 +0000 |
commit | 068d16b4df513920ae0fe0e8be656c63f46fbf6b (patch) | |
tree | 8d7367f16d7b09a6dfa5a677063d028d372d6733 /lldb/source/Core/StreamFile.cpp | |
parent | edd5192d13ba128936a08bbb612254afa3a14688 (diff) | |
download | bcm5719-llvm-068d16b4df513920ae0fe0e8be656c63f46fbf6b.tar.gz bcm5719-llvm-068d16b4df513920ae0fe0e8be656c63f46fbf6b.zip |
Fixup on setlinebuf() patch to make it work.
llvm-svn: 124944
Diffstat (limited to 'lldb/source/Core/StreamFile.cpp')
-rw-r--r-- | lldb/source/Core/StreamFile.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Core/StreamFile.cpp b/lldb/source/Core/StreamFile.cpp index 51de26d6368..f422f8ad04c 100644 --- a/lldb/source/Core/StreamFile.cpp +++ b/lldb/source/Core/StreamFile.cpp @@ -8,6 +8,7 @@ //===----------------------------------------------------------------------===// #include "lldb/Core/StreamFile.h" +#include "lldb/Host/Config.h" #include <stdio.h> // C Includes @@ -94,16 +95,14 @@ StreamFile::Open (const char *path, const char *permissions) return m_file != NULL; } -#if LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED - void StreamFile::SetLineBuffered () { +#if LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED if (m_file != NULL) setlinebuf (m_file); -} - #endif // #if LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED +} void StreamFile::Flush () |