summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/StreamFile.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-02-05 06:37:53 +0000
committerGreg Clayton <gclayton@apple.com>2011-02-05 06:37:53 +0000
commitedd5192d13ba128936a08bbb612254afa3a14688 (patch)
treeed4f74faf44a1716a2e052ae9723ee37c9bed7ba /lldb/source/Core/StreamFile.cpp
parent8442fba3b45586bfe55a082fc150d6173d4f4e47 (diff)
downloadbcm5719-llvm-edd5192d13ba128936a08bbb612254afa3a14688.tar.gz
bcm5719-llvm-edd5192d13ba128936a08bbb612254afa3a14688.zip
Configuration support for setlinebuf support from Kirk Beitz.
llvm-svn: 124943
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