Re: [PATCH v2] btrfs-progs: cmds: Fix build for using NAME_MAX
From: Qu Wenruo <hidden>
Date: 2021-07-25 23:52:01
From: Qu Wenruo <hidden>
Date: 2021-07-25 23:52:01
On 2021/7/25 下午11:24, Sidong Yang wrote:
There is some code that using NAME_MAX but it doesn't include header that is defined. This patch adds a line that includes linux/limits.h which defines NAME_MAX. Issue: #386 Signed-off-by: Sidong Yang <redacted>
Reviewed-by: Qu Wenruo <redacted> Thanks, Qu
--- v2: - Added tag for github issue --- cmds/filesystem-usage.c | 1 + 1 file changed, 1 insertion(+)diff --git a/cmds/filesystem-usage.c b/cmds/filesystem-usage.c index 50d8995e..2a76e29c 100644 --- a/cmds/filesystem-usage.c +++ b/cmds/filesystem-usage.c@@ -24,6 +24,7 @@ #include <stdarg.h> #include <getopt.h> #include <fcntl.h> +#include <linux/limits.h> #include "common/utils.h" #include "kerncompat.h"