summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2018-08-28 22:17:28 +0000
committerRaphael Isemann <teemperor@gmail.com>2018-08-28 22:17:28 +0000
commit691e92b573ced02f1e66d674d4bd83d19e070144 (patch)
tree7a9c53925717954bbe2c24e05a89edb4e19096e6 /lldb
parentd8358b8e6f4b8a9bd6bb5669f7085e25bee1cee8 (diff)
downloadbcm5719-llvm-691e92b573ced02f1e66d674d4bd83d19e070144.tar.gz
bcm5719-llvm-691e92b573ced02f1e66d674d4bd83d19e070144.zip
[lldb] Fix lldb build on musl
Summary: limits.h is needed for getting PATH_MAX definition, this comes to fore with musl libc where limits.h is not included indirectly via other system headers. Patch by Khem Raj, thanks! Reviewers: compnerd Reviewed By: compnerd Subscribers: llvm-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D31275 llvm-svn: 340876
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/Utility/FileSpec.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Utility/FileSpec.cpp b/lldb/source/Utility/FileSpec.cpp
index b6952f7e3eb..7135e33110d 100644
--- a/lldb/source/Utility/FileSpec.cpp
+++ b/lldb/source/Utility/FileSpec.cpp
@@ -27,6 +27,7 @@
#include <vector> // for vector
#include <assert.h> // for assert
+#include <limits.h> // for PATH_MAX
#include <stdio.h> // for size_t, NULL, snpr...
#include <string.h> // for strcmp
OpenPOWER on IntegriCloud