[Lldb-commits] [lldb] r124944 - in /lldb/trunk: include/lldb/Core/StreamFile.h source/Core/StreamFile.cpp

Greg Clayton gclayton at apple.com
Fri Feb 4 22:41:57 PST 2011


Author: gclayton
Date: Sat Feb  5 00:41:57 2011
New Revision: 124944

URL: http://llvm.org/viewvc/llvm-project?rev=124944&view=rev
Log:
Fixup on setlinebuf() patch to make it work.


Modified:
    lldb/trunk/include/lldb/Core/StreamFile.h
    lldb/trunk/source/Core/StreamFile.cpp

Modified: lldb/trunk/include/lldb/Core/StreamFile.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/StreamFile.h?rev=124944&r1=124943&r2=124944&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/StreamFile.h (original)
+++ lldb/trunk/include/lldb/Core/StreamFile.h Sat Feb  5 00:41:57 2011
@@ -62,10 +62,8 @@
     const char *
     GetFilePathname ();
 
-#if LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED
     void
     SetLineBuffered();
-#endif // #if LLDB_CONFIG_SUPPORTS_SETLINEBUFFERED
 
 protected:
     //------------------------------------------------------------------

Modified: lldb/trunk/source/Core/StreamFile.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/StreamFile.cpp?rev=124944&r1=124943&r2=124944&view=diff
==============================================================================
--- lldb/trunk/source/Core/StreamFile.cpp (original)
+++ lldb/trunk/source/Core/StreamFile.cpp Sat Feb  5 00:41:57 2011
@@ -8,6 +8,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "lldb/Core/StreamFile.h"
+#include "lldb/Host/Config.h"
 #include <stdio.h>
 
 // C Includes
@@ -94,16 +95,14 @@
     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 ()





More information about the lldb-commits mailing list