btrfsprogs: corrupt-blocks: include limits.h to define PATH_MAX
authorKhem Raj <raj.khem@gmail.com>
Sun, 10 Jan 2016 03:04:23 +0000 (19:04 -0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 12 Jan 2016 14:02:54 +0000 (15:02 +0100)
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 <raj.khem@gmail.com>
[ minor changelog edits ]
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-corrupt-block.c

index 0b26903..c908b7e 100644 (file)
@@ -21,6 +21,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <getopt.h>
+#include <limits.h>
 
 #include "kerncompat.h"
 #include "ctree.h"