Newer
Older
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