aboutsummaryrefslogtreecommitdiffstats
path: root/community/cppcheck/climit.patch
blob: 504b8b95b481b9128a0b50dde2a3368488a8741d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From b7ce2a5a99f3f8665faf04d9efc6f4e838095124 Mon Sep 17 00:00:00 2001
From: YQGong <32567917+YQGong@users.noreply.github.com>
Date: Sat, 30 Jan 2021 21:45:03 +0800
Subject: [PATCH] fix NAME_MAX not found on macOS GCC8.1 (#3098)

---
 cli/filelister.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cli/filelister.cpp b/cli/filelister.cpp
index f619b485a2..6a54bd2b18 100644
--- a/cli/filelister.cpp
+++ b/cli/filelister.cpp
@@ -24,6 +24,8 @@
 
 #include <cstddef>
 #include <cstring>
+// fix NAME_MAX not found on macOS GCC8.1
+#include <climits>
 
 #ifdef _WIN32