summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/StreamFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Core/StreamFile.cpp')
-rw-r--r--lldb/source/Core/StreamFile.cpp7
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 ()
OpenPOWER on IntegriCloud