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.

llvm-svn: 211620
This commit is contained in:
Ed Maste 2014-06-24 19:16:18 +00:00
parent 3a46afafef
commit 4cfcca7b6f
5 changed files with 6 additions and 5 deletions

View File

@ -19,6 +19,8 @@
// Copyright: None.
//--
#include <stdlib.h>
// Third Party Headers:
#include <lldb/API/SBError.h>
#include <cstdlib>

View File

@ -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"

View File

@ -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()

View File

@ -22,7 +22,7 @@
// Include compiler configuration
#include "MICmnConfig.h"
#if defined( __linux )
#if defined( __FreeBSD__ ) || defined( __linux )
// In-house headers:
#include "MIUtilSystemLinux.h"

View File

@ -24,7 +24,7 @@
// Include compiler configuration
#include "MICmnConfig.h"
#if defined( __linux )
#if defined( __FreeBSD__ ) || defined( __linux )
// In-house headers:
#include "MIUtilString.h"