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.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Core/StreamFile.cpp b/lldb/source/Core/StreamFile.cpp
index 278e90f8bab..51de26d6368 100644
--- a/lldb/source/Core/StreamFile.cpp
+++ b/lldb/source/Core/StreamFile.cpp
@@ -94,6 +94,8 @@ StreamFile::Open (const char *path, const char *permissions)
return m_file != NULL;
}
+#if LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED
+
void
StreamFile::SetLineBuffered ()
{
@@ -101,6 +103,8 @@ StreamFile::SetLineBuffered ()
setlinebuf (m_file);
}
+#endif // #if LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED
+
void
StreamFile::Flush ()
{
OpenPOWER on IntegriCloud