Whilst experimenting with YAFFS on RedBoot, I had trouble compiling sys/stat.h out of the box; __externC wasn't defined. Patch attached.
Ross -- Embedded Software Engineer, eCosCentric Limited. Barnwell House, Barnwell Drive, Cambridge CB5 8UU, UK. Registered in England no. 4422071. www.ecoscentric.com
Index: packages/isoinfra/current/ChangeLog =================================================================== RCS file: /cvs/ecos/ecos/packages/isoinfra/current/ChangeLog,v retrieving revision 1.34 diff -u -5 -p -r1.34 ChangeLog --- packages/isoinfra/current/ChangeLog 13 May 2009 08:21:34 -0000 1.34 +++ packages/isoinfra/current/ChangeLog 3 Jun 2009 15:31:21 -0000 @@ -1,5 +1,9 @@ +2009-06-03 Ross Younger <[email protected]> + + * include/sys/stat.h: Include cyg_type.h for __externC + 2009-05-12 Simon Kallweit <[email protected]> * include/sys/types.h: * include/limits.h: Fixed typo in CYGBLD_ISO_SSIZET_HEADER. Index: packages/isoinfra/current/include/sys/stat.h =================================================================== RCS file: /cvs/ecos/ecos/packages/isoinfra/current/include/sys/stat.h,v retrieving revision 1.9 diff -u -5 -p -r1.9 stat.h --- packages/isoinfra/current/include/sys/stat.h 2 Mar 2009 20:54:30 -0000 1.9 +++ packages/isoinfra/current/include/sys/stat.h 3 Jun 2009 15:31:21 -0000 @@ -59,10 +59,12 @@ #include <pkgconf/isoinfra.h> /* Configuration header */ /* INCLUDES */ +#include <cyg/infra/cyg_type.h> /* __externC */ + #ifdef CYGBLD_ISO_STAT_DEFS_HEADER # include CYGBLD_ISO_STAT_DEFS_HEADER #else #include <sys/types.h> /* ino_t, dev_t, etc. */
