From: Tom Rini Date: Thu, 7 Nov 2019 17:49:16 -0500 Subject: [U-Boot] [PATCH] include/env.h: Ensure ulong is defined In-Reply-To: <20191105193045.24981-1-alistair.francis@wdc.com> References: <20191105193045.24981-1-alistair.francis@wdc.com> Message-ID: <20191107224916.GS19317@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Nov 05, 2019 at 11:30:45AM -0800, Alistair Francis wrote: > To fix these failures when building with musl: > include/env.h:166:1: error: unknown type name 'ulong'; did you mean 'long'? > ensure that ulong is defined. > > Signed-off-by: Alistair Francis > --- > include/env.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/env.h b/include/env.h > index b72239f6a5..5ca49a3456 100644 > --- a/include/env.h > +++ b/include/env.h > @@ -13,6 +13,8 @@ > #include > #include > > +typedef unsigned long ulong; > + > struct environment_s; > > /* Value for environment validity */ What exactly is the case you're hitting this under? is where we have that typedef. I'd almost rather spell out unsigned long in a few more places than add a typedef here, if we can't solve this via correcting some include order or some other underlying problem. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: