[Yaffs] [PATCH] Add missing #include <config.h>

Luc Van Oostenryck lkml at looxix.net
Wed Jul 20 01:38:25 BST 2005


Add some missing #include <config.h>.

These are not needed with the Makefile in CVS but are needed when compiling
with a standard Linux Makefile.
-------------- next part --------------
diff --git a/fs/yaffs2/yaffs_ecc.c b/fs/yaffs2/yaffs_ecc.c
--- a/fs/yaffs2/yaffs_ecc.c
+++ b/fs/yaffs2/yaffs_ecc.c
@@ -31,6 +31,9 @@
 
 const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.2 2005/03/16 04:00:36 charles Exp $";
 
+#ifdef	__KERNEL__
+#include <linux/config.h>
+#endif
 
 #include "yaffs_ecc.h"
 
diff --git a/fs/yaffs2/yaffs_ramem.c b/fs/yaffs2/yaffs_ramem.c
--- a/fs/yaffs2/yaffs_ramem.c
+++ b/fs/yaffs2/yaffs_ramem.c
@@ -19,6 +19,8 @@ const char *yaffs_ramem_c_version = "$Id
 
 #ifndef __KERNEL__
 #define CONFIG_YAFFS_RAM_ENABLED
+#else
+#include <linux/config.h>
 #endif
 
 #ifdef CONFIG_YAFFS_RAM_ENABLED
diff --git a/fs/yaffs2/yaffs_ramem2k.c b/fs/yaffs2/yaffs_ramem2k.c
--- a/fs/yaffs2/yaffs_ramem2k.c
+++ b/fs/yaffs2/yaffs_ramem2k.c
@@ -19,6 +19,8 @@ const char *yaffs_ramem2k_c_version = "$
 
 #ifndef __KERNEL__
 #define CONFIG_YAFFS_RAM_ENABLED
+#else
+#include <linux/config.h>
 #endif
 
 #ifdef CONFIG_YAFFS_RAM_ENABLED


More information about the yaffs mailing list