changeset 32:9fb4bb95d8de

Add missing #include <linux/config.h> Needed to compile the code with a Makefile from the Linux tree.
author luc
date Fri, 29 Jul 2005 20:57:38 +0100
parents 7a3f94ca633b
children a4177df7d512
files yaffs_ecc.c yaffs_ramem.c yaffs_ramem2k.c
diffstat 3 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/yaffs_ecc.c
+++ b/yaffs_ecc.c
@@ -31,6 +31,9 @@
 
 const char *yaffs_ecc_c_version = "$Id$";
 
+#ifdef	__KERNEL__
+#include <linux/config.h>
+#endif
 
 #include "yaffs_ecc.h"
 
--- a/yaffs_ramem.c
+++ b/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
--- a/yaffs_ramem2k.c
+++ b/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