This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
From: Andrew Lunn <andrew@lunn.ch><ecos-discuss@sourceware.org>
To: David Luca <davidluca3000@yahoo.com>
CC: Andrew Lunn <andrew@lunn.ch>, ecos-discuss
cvs for testing purposes onlySubject: Re: [ECOS] Building JFFS2 on net template fails Date: Tue, 30 Jan 2007 20:13:30 +0100
On Tue, Jan 30, 2007 at 09:45:30AM -0800, David Luca wrote:
> No time machine, I just put in ecos-3.0 folder anything new from the
> :)types are redefined. Where
> Thank you for your hack, it works. But I don't understand why these
> should I include <stdint.h> since I don't want to change the packagefiles (like BSD), only
> platform files? > David.
The problem is in
packages/compact/linux/current/include/linux/types.h
It has
#define uint8_t cyg_uint8 #define uint16_t cyg_uint16 #define uint32_t cyg_uint32
#define int8_t cyg_int8 #define int16_t cyg_int16 #define int32_t cyg_int32
So when bsdtypes.h is included afterward, which has....
typedef __signed char int8_t; typedef short int16_t;
etc, the int8_t gets replaced with cyg_int8 and you end up with redefining the type.
The #defines need replacing with something better.
Andrew
-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |