diff mbox

btrfs-corrupt-blocks: Include limits.h

Message ID 1452395063-8414-1-git-send-email-raj.khem@gmail.com (mailing list archive)
State Accepted
Headers show

Commit Message

Khem Raj Jan. 10, 2016, 3:04 a.m. UTC
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>
---
 btrfs-corrupt-block.c | 1 +
 1 file changed, 1 insertion(+)

Comments

David Sterba Jan. 11, 2016, 3:34 p.m. UTC | #1
On Sat, Jan 09, 2016 at 07:04:23PM -0800, Khem Raj wrote:
> 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>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/btrfs-corrupt-block.c b/btrfs-corrupt-block.c
index 0b26903..c908b7e 100644
--- a/btrfs-corrupt-block.c
+++ b/btrfs-corrupt-block.c
@@ -21,6 +21,7 @@ 
 #include <fcntl.h>
 #include <unistd.h>
 #include <getopt.h>
+#include <limits.h>
 
 #include "kerncompat.h"
 #include "ctree.h"