btrfs-corrupt-blocks: Include limits.h
PATCH 1/1 btrfs-corrupt-blocks: Include limits.h
limits.h is needed for PATH_MAX definition
Fixes
| btrfs-corrupt-block.c: In function 'corrupt_dir_item': | btrfs-corrupt-block.c:478:12: error: 'PATH_MAX' undeclared (first use in this function) | char name[PATH_MAX];
Signed-off-by Khem Raj <[email protected]>
--- btrfs-corrupt-block.c | 1 + 1 file changed, 1 insertion(+)
btrfs-corrupt-block.c +1 -0
@@ -21,6 +21,7 @@#include <fcntl.h> #include <unistd.h> #include <getopt.h> +#include <limits.h> #include "kerncompat.h" #include "ctree.h"
Signature · 1 line
2.7.0
David Sterba
AppliedQuoted 8 lines · Khem Raj
limits.his needed forPATH_MAXdefinitionFixes
| btrfs-corrupt-block.c: In function 'corrupt_dir_item': | btrfs-corrupt-block.c:478:12: error: 'PATH_MAX' undeclared (first use in this function) | char name[PATH_MAX];Signed-off-by Khem Raj <[email protected]>
Applied, thanks.