From: luc Date: Fri, 29 Jul 2005 19:57:38 +0000 (+0000) Subject: Add missing #include X-Git-Tag: pre-name-change~457 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=ae1a3323e4dee438db4548db5cb2d138d01d619a;hp=2c76b6b85ece174f7c3dd47713367dbe0ea4d7e7 Add missing #include Needed to compile the code with a Makefile from the Linux tree. --- diff --git a/yaffs_ecc.c b/yaffs_ecc.c index 820041a..e1400c3 100644 --- a/yaffs_ecc.c +++ b/yaffs_ecc.c @@ -29,8 +29,11 @@ // Bit 0 of each entry indicates whether the entry has an odd or even parity, and therefore // this bytes influence on the line parity. -const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.2 2005-03-16 04:00:36 charles Exp $"; +const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.3 2005-07-29 19:57:38 luc Exp $"; +#ifdef __KERNEL__ +#include +#endif #include "yaffs_ecc.h" diff --git a/yaffs_ramem.c b/yaffs_ramem.c index da9a2ad..f416616 100644 --- a/yaffs_ramem.c +++ b/yaffs_ramem.c @@ -15,10 +15,12 @@ //yaffs_ramem.c // Since this creates the RAM block at start up it is pretty useless for testing the scanner. -const char *yaffs_ramem_c_version = "$Id: yaffs_ramem.c,v 1.2 2005-07-19 20:41:59 charles Exp $"; +const char *yaffs_ramem_c_version = "$Id: yaffs_ramem.c,v 1.3 2005-07-29 19:57:38 luc Exp $"; #ifndef __KERNEL__ #define CONFIG_YAFFS_RAM_ENABLED +#else +#include #endif #ifdef CONFIG_YAFFS_RAM_ENABLED diff --git a/yaffs_ramem2k.c b/yaffs_ramem2k.c index 67f604b..f32afe5 100644 --- a/yaffs_ramem2k.c +++ b/yaffs_ramem2k.c @@ -15,10 +15,12 @@ //yaffs_ramem2k.c: RAM emulation in-kernel for 2K pages (YAFFS2) -const char *yaffs_ramem2k_c_version = "$Id: yaffs_ramem2k.c,v 1.2 2005-04-24 09:26:08 charles Exp $"; +const char *yaffs_ramem2k_c_version = "$Id: yaffs_ramem2k.c,v 1.3 2005-07-29 19:57:38 luc Exp $"; #ifndef __KERNEL__ #define CONFIG_YAFFS_RAM_ENABLED +#else +#include #endif #ifdef CONFIG_YAFFS_RAM_ENABLED