[Lldb-commits] [lldb] r340876 - [lldb] Fix lldb build on musl

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 28 15:17:29 PDT 2018


Author: teemperor
Date: Tue Aug 28 15:17:28 2018
New Revision: 340876

URL: http://llvm.org/viewvc/llvm-project?rev=340876&view=rev
Log:
[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

Modified:
    lldb/trunk/source/Utility/FileSpec.cpp

Modified: lldb/trunk/source/Utility/FileSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/FileSpec.cpp?rev=340876&r1=340875&r2=340876&view=diff
==============================================================================
--- lldb/trunk/source/Utility/FileSpec.cpp (original)
+++ lldb/trunk/source/Utility/FileSpec.cpp Tue Aug 28 15:17:28 2018
@@ -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
 




More information about the lldb-commits mailing list