| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 1/6] xfsprogs: define NBBY if not defined by the system header files |
| From: | Theodore Ts'o <tytso@xxxxxxx> |
| Date: | Sun, 26 Jul 2015 08:20:50 -0400 |
| Cc: | Theodore Ts'o <tytso@xxxxxxx>, fstests@xxxxxxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=HDYEGQMKxz5lJ1/+EgolejNTLSNFjIelX4baTxov7m4=; b=slHj4PQSb680chQzWJHw+aLFZmDXPPHrKHmctOKP7WTkGa3x78jWJMmfKHB78RBavQPtCkGTf4nO5m4r5SnsEjxWRGzls2wyYo8ODsk5GzmS6cSMbtBXBmXzZxvgOJZdxitcs0Rq5vY2VTDXoN2InF9kJpULGBL0ynDjtVCXb0Q=; |
| In-reply-to: | <1437913255-7524-1-git-send-email-tytso@xxxxxxx> |
| References: | <1437913255-7524-1-git-send-email-tytso@xxxxxxx> |
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@xxxxxxx> --- 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 ac260bc..3e059af 100644 --- a/include/platform_defs.h.in +++ b/include/platform_defs.h.in @@ -178,4 +178,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.3.0 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 5/6] xfsprogs: use "unsigned short" instead of ushort, Theodore Ts'o |
|---|---|
| Next by Date: | [PATCH 3/6] xfsprogs: define and use BUILD_CC in configure.ac for cross compilation, Theodore Ts'o |
| Previous by Thread: | Re: [PATCH 5/6] xfsprogs: use "unsigned short" instead of ushort, Christoph Hellwig |
| Next by Thread: | Re: [PATCH 1/6] xfsprogs: define NBBY if not defined by the system header files, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |