]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: define NBBY if not defined by the system header files
authorTheodore Ts'o <tytso@mit.edu>
Mon, 3 Aug 2015 00:15:45 +0000 (10:15 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 3 Aug 2015 00:15:45 +0000 (10:15 +1000)
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 <tytso@mit.edu>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
include/platform_defs.h.in

index fc7e01abb7560edbe920f2ddb8d07e7bd9b82ffd..574b67f3febf59d65284b9eb0451ad8bd997bdbd 100644 (file)
@@ -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__ */