summaryrefslogtreecommitdiff
path: root/recipes/yaffs2/files/devextras.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/yaffs2/files/devextras.h.patch')
-rw-r--r--recipes/yaffs2/files/devextras.h.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/yaffs2/files/devextras.h.patch b/recipes/yaffs2/files/devextras.h.patch
new file mode 100644
index 0000000000..fd4f4f4665
--- /dev/null
+++ b/recipes/yaffs2/files/devextras.h.patch
@@ -0,0 +1,22 @@
+Index: yaffs2/devextras.h
+===================================================================
+--- yaffs2.orig/devextras.h
++++ yaffs2/devextras.h
+@@ -170,6 +170,8 @@ static __inline__ int ylist_empty(struct
+ #define ATTR_MTIME 32
+ #define ATTR_CTIME 64
+
++#endif
++
+ struct iattr {
+ unsigned int ia_valid;
+ unsigned ia_mode;
+@@ -182,8 +184,6 @@ struct iattr {
+ unsigned int ia_attr_flags;
+ };
+
+-#endif
+-
+ #else
+
+ #include <linux/types.h>