summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia K <ki.stfu@gmail.com>2015-03-12 04:18:47 +0000
committerIlia K <ki.stfu@gmail.com>2015-03-12 04:18:47 +0000
commit299819c458d305253ad8a63fe76a5af872bb9a6f (patch)
tree5cb83602297328dbf114c49be78e4180c0cb73ab
parent92f473927fde0bf576253f67b58a3f72fd161860 (diff)
downloadbcm5719-llvm-299819c458d305253ad8a63fe76a5af872bb9a6f.tar.gz
bcm5719-llvm-299819c458d305253ad8a63fe76a5af872bb9a6f.zip
Fix PATH_MAX definition after remarks in r231917 (MI)
llvm-svn: 232008
-rw-r--r--lldb/tools/lldb-mi/Driver.cpp3
-rw-r--r--lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp3
-rw-r--r--lldb/tools/lldb-mi/Platform.h1
3 files changed, 3 insertions, 4 deletions
diff --git a/lldb/tools/lldb-mi/Driver.cpp b/lldb/tools/lldb-mi/Driver.cpp
index 2a907636723..8d2840ff33a 100644
--- a/lldb/tools/lldb-mi/Driver.cpp
+++ b/lldb/tools/lldb-mi/Driver.cpp
@@ -16,13 +16,12 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <limits.h>
#include <fcntl.h>
#include <string>
#endif // _MSC_VER
#include "Platform.h" // CODETAG_IOR_SIGNALS
-#include "Driver.h"
+#include "Driver.h" // for PATH_MAX
#ifdef _MSC_VER
#include <lldb\Host\windows\getopt\GetOptInc.h>
diff --git a/lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp b/lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
index 41974ff84c4..69746f1135e 100644
--- a/lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
+++ b/lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
@@ -35,7 +35,6 @@
#else
#include <unistd.h> // For the ::access()
#endif // _WIN32
-#include <limits.h> // for PATH_MAX
// In-house headers:
#include "MICmnLLDBDebuggerHandleEvents.h"
@@ -50,7 +49,7 @@
#include "MICmnStreamStderr.h"
#include "MIUtilDebug.h"
#include "MIDriver.h"
-#include "Platform.h" // for PATH_MAX on Windows
+#include "Platform.h" // for PATH_MAX
//++ ------------------------------------------------------------------------------------
// Details: CMICmnLLDBDebuggerHandleEvents constructor.
diff --git a/lldb/tools/lldb-mi/Platform.h b/lldb/tools/lldb-mi/Platform.h
index 7c351310b25..ee63631874b 100644
--- a/lldb/tools/lldb-mi/Platform.h
+++ b/lldb/tools/lldb-mi/Platform.h
@@ -89,6 +89,7 @@ extern sighandler_t signal(int sig, sighandler_t);
#else
#include <inttypes.h>
+#include <limits.h>
#include <getopt.h>
#include <libgen.h>
OpenPOWER on IntegriCloud