From d302bf5b344b486405bb10ac2302c1315b7290de Mon Sep 17 00:00:00 2001 From: Sidong Yang Date: Sun, 25 Jul 2021 15:24:38 +0000 Subject: [PATCH] btrfs-progs: cmds: fix build on musl when using NAME_MAX 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 Issue: #385 Reviewed-by: Qu Wenruo Signed-off-by: Sidong Yang Signed-off-by: David Sterba --- 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 #include #include +#include #include "common/utils.h" #include "kerncompat.h"