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 <wqu@suse.com>
Signed-off-by: Sidong Yang <realwakka@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Sidong Yang 2021-07-25 15:24:38 +00:00 committed by David Sterba
parent 6527771668
commit d302bf5b34
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@
#include <stdarg.h>
#include <getopt.h>
#include <fcntl.h>
#include <linux/limits.h>
#include "common/utils.h"
#include "kerncompat.h"