summaryrefslogtreecommitdiffstats
path: root/external/meta-clang/recipes-devtools/clang/clang/0001-lldb-Include-limits.h-for-PATH_MAX-definition.patch
blob: 1c42931fe502fd5d60a0a440361200862b7deb1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From ff8d7137ed4d62e9db6d31581822a2ce06d5cbc6 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 18 May 2017 23:12:34 -0700
Subject: [PATCH 1/2] lldb: Include limits.h for PATH_MAX definition

Helps compiling on musl targets

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 source/Utility/FileSpec.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/Utility/FileSpec.cpp b/source/Utility/FileSpec.cpp
index b6952f7e3..2cedf5d90 100644
--- a/source/Utility/FileSpec.cpp
+++ b/source/Utility/FileSpec.cpp
@@ -29,7 +29,7 @@
 #include <assert.h> // for assert
 #include <stdio.h>  // for size_t, NULL, snpr...
 #include <string.h> // for strcmp
-
+#include <limits.h> // for PATH_MAX
 using namespace lldb;
 using namespace lldb_private;
 
-- 
2.20.1