From: Eric Sandeen Date: Wed, 17 Oct 2018 18:25:10 +0000 (-0500) Subject: xfsprogs: avoid redefinition of NBBY X-Git-Tag: v4.19.0-rc1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bba5a01be4284792ea3c701811d5cc12ac592a0;p=thirdparty%2Fxfsprogs-dev.git xfsprogs: avoid redefinition of NBBY Include sys/param.h for NBBY definition. Do this before our local guarded definition which is for platforms like android that don't have it, see commit: c9a90185 xfsprogs: define NBBY if not defined by the system header files Fixes sparse warnings about this redefinition. Signed-off-by: Eric Sandeen Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- diff --git a/include/platform_defs.h.in b/include/platform_defs.h.in index c4f0e8b46..d111ec6d2 100644 --- a/include/platform_defs.h.in +++ b/include/platform_defs.h.in @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -65,6 +66,7 @@ typedef unsigned short umode_t; #define max(a,b) (((a)>(b))?(a):(b)) #endif +/* If param.h doesn't provide it, i.e. for Android */ #ifndef NBBY #define NBBY 8 #endif