[Lldb-commits] [lldb] fa5a132 - Provide a reasonable value for PATH_MAX if the lldb headers don't provide it.

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 29 15:03:31 PDT 2020


Author: Jim Ingham
Date: 2020-10-29T15:02:51-07:00
New Revision: fa5a13276764a2657b3571fa3c57b07ee5d2d661

URL: https://github.com/llvm/llvm-project/commit/fa5a13276764a2657b3571fa3c57b07ee5d2d661
DIFF: https://github.com/llvm/llvm-project/commit/fa5a13276764a2657b3571fa3c57b07ee5d2d661.diff

LOG: Provide a reasonable value for PATH_MAX if the lldb headers don't provide it.

Added: 
    

Modified: 
    lldb/test/API/api/multithreaded/test_stop-hook.cpp.template

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/api/multithreaded/test_stop-hook.cpp.template b/lldb/test/API/api/multithreaded/test_stop-hook.cpp.template
index 8b60421ec301..393e717cceb5 100644
--- a/lldb/test/API/api/multithreaded/test_stop-hook.cpp.template
+++ b/lldb/test/API/api/multithreaded/test_stop-hook.cpp.template
@@ -12,6 +12,10 @@
 
 #include "common.h"
 
+#if !defined(PATH_MAX)
+#define PATH_MAX 4096
+#endif
+
 using namespace lldb;
 
 void test(SBDebugger &dbg, std::vector<std::string> args) {


        


More information about the lldb-commits mailing list