From c9a901852bfc8f41db8c782b4bd31e589fcaf519 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 3 Aug 2015 10:15:45 +1000 Subject: [PATCH] xfsprogs: define NBBY if not defined by the system header files Android's bionic libc doesn't define NBBY; this isn't a standard define, and since all modern/sane platforms have 8 bits per byte, use this as a default. Signed-off-by: Theodore Ts'o Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- include/platform_defs.h.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/platform_defs.h.in b/include/platform_defs.h.in index fc7e01abb..574b67f3f 100644 --- a/include/platform_defs.h.in +++ b/include/platform_defs.h.in @@ -78,4 +78,8 @@ typedef unsigned short umode_t; #define max(a,b) (((a)>(b))?(a):(b)) #endif +#ifndef NBBY +#define NBBY 8 +#endif + #endif /* __XFS_PLATFORM_DEFS_H__ */ -- 2.47.2