[Lldb-commits] [lldb] r211620 - Restore fixes reverted by r211607:
Ed Maste
emaste at freebsd.org
Tue Jun 24 12:16:18 PDT 2014
Author: emaste
Date: Tue Jun 24 14:16:18 2014
New Revision: 211620
URL: http://llvm.org/viewvc/llvm-project?rev=211620&view=rev
Log:
Restore fixes reverted by r211607:
r209631: Use MIUtilSystemLinux on FreeBSD as well
We should later rename this file (probably MIUtilSystemPOSIX), but
more clean-up is still needed here, and we can wait until we better
understand how this code may be shared between FreeBSD, Linux, and OS X.
r209632: Add stdlib.h for malloc and friends
r209633: Remove include of obsolete stropts.h header
The header is for POSIX streams functionality, and does not exist on
FreeBSD, OS X, or contemporary Linux distributions.
Issue reported by John Wolfe.
Modified:
lldb/trunk/tools/lldb-mi/MICmnLLDBProxySBValue.cpp
lldb/trunk/tools/lldb-mi/MICmnLogMediumFile.cpp
lldb/trunk/tools/lldb-mi/MICmnStreamStdinLinux.cpp
lldb/trunk/tools/lldb-mi/MIUtilSystemLinux.cpp
lldb/trunk/tools/lldb-mi/MIUtilSystemLinux.h
Modified: lldb/trunk/tools/lldb-mi/MICmnLLDBProxySBValue.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnLLDBProxySBValue.cpp?rev=211620&r1=211619&r2=211620&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmnLLDBProxySBValue.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmnLLDBProxySBValue.cpp Tue Jun 24 14:16:18 2014
@@ -19,6 +19,8 @@
// Copyright: None.
//--
+#include <stdlib.h>
+
// Third Party Headers:
#include <lldb/API/SBError.h>
#include <cstdlib>
Modified: lldb/trunk/tools/lldb-mi/MICmnLogMediumFile.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnLogMediumFile.cpp?rev=211620&r1=211619&r2=211620&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmnLogMediumFile.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmnLogMediumFile.cpp Tue Jun 24 14:16:18 2014
@@ -28,7 +28,7 @@
#if defined( _MSC_VER )
#include "MIUtilSystemWindows.h"
-#elif defined( __linux )
+#elif defined( __FreeBSD__ ) || defined( __linux )
#include "MIUtilSystemLinux.h"
#elif defined( __APPLE__ )
#include "MIUtilSystemOsx.h"
Modified: lldb/trunk/tools/lldb-mi/MICmnStreamStdinLinux.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnStreamStdinLinux.cpp?rev=211620&r1=211619&r2=211620&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmnStreamStdinLinux.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmnStreamStdinLinux.cpp Tue Jun 24 14:16:18 2014
@@ -23,7 +23,6 @@
#if !defined( _MSC_VER )
#include <sys/select.h>
#include <termios.h>
-#include <stropts.h>
#endif // !defined( _MSC_VER )
#include <string.h> // For std::strerror()
@@ -211,4 +210,4 @@ const MIchar * CMICmnStreamStdinLinux::R
}
return pText;
-}
\ No newline at end of file
+}
Modified: lldb/trunk/tools/lldb-mi/MIUtilSystemLinux.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MIUtilSystemLinux.cpp?rev=211620&r1=211619&r2=211620&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MIUtilSystemLinux.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MIUtilSystemLinux.cpp Tue Jun 24 14:16:18 2014
@@ -22,7 +22,7 @@
// Include compiler configuration
#include "MICmnConfig.h"
-#if defined( __linux )
+#if defined( __FreeBSD__ ) || defined( __linux )
// In-house headers:
#include "MIUtilSystemLinux.h"
Modified: lldb/trunk/tools/lldb-mi/MIUtilSystemLinux.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MIUtilSystemLinux.h?rev=211620&r1=211619&r2=211620&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MIUtilSystemLinux.h (original)
+++ lldb/trunk/tools/lldb-mi/MIUtilSystemLinux.h Tue Jun 24 14:16:18 2014
@@ -24,7 +24,7 @@
// Include compiler configuration
#include "MICmnConfig.h"
-#if defined( __linux )
+#if defined( __FreeBSD__ ) || defined( __linux )
// In-house headers:
#include "MIUtilString.h"
More information about the lldb-commits
mailing list