From: Theodore Ts'o Date: Mon, 3 Aug 2015 00:15:45 +0000 (+1000) Subject: xfsprogs: define NBBY if not defined by the system header files X-Git-Tag: v4.2.0-rc1~2^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c9a901852bfc8f41db8c782b4bd31e589fcaf519;p=thirdparty%2Fxfsprogs-dev.git 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 --- 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__ */