All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] btrfs-corrupt-blocks: Include limits.h
@ 2016-01-10  3:04 Khem Raj
  2016-01-11 15:34 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2016-01-10  3:04 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Khem Raj

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(+)

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"
-- 
2.7.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] btrfs-corrupt-blocks: Include limits.h
  2016-01-10  3:04 [PATCH] btrfs-corrupt-blocks: Include limits.h Khem Raj
@ 2016-01-11 15:34 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2016-01-11 15:34 UTC (permalink / raw)
  To: Khem Raj; +Cc: linux-btrfs

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-11 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-10  3:04 [PATCH] btrfs-corrupt-blocks: Include limits.h Khem Raj
2016-01-11 15:34 ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.