projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply fixes in cisco patch to yaffs_vfs_single
[yaffs2.git]
/
direct
/
yportenv.h
diff --git
a/direct/yportenv.h
b/direct/yportenv.h
index 0d0d0faa2cf6ca04f4b5340830deaa74e2df3b35..abc761b6e8c508be860e535730db8c6b10a1535d 100644
(file)
--- a/
direct/yportenv.h
+++ b/
direct/yportenv.h
@@
-19,9
+19,11
@@
/* Definition of types */
/* Definition of types */
+#ifdef CONFIG_YAFFS_DEFINES_TYPES
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned char u8;
typedef unsigned short u16;
-typedef unsigned u32;
+typedef unsigned int u32;
+#endif
#ifdef CONFIG_YAFFS_PROVIDE_DEFS
#ifdef CONFIG_YAFFS_PROVIDE_DEFS
@@
-92,7
+94,7
@@
struct iattr {
#ifdef CONFIG_YAFFSFS_PROVIDE_VALUES
#ifndef O_RDONLY
#ifdef CONFIG_YAFFSFS_PROVIDE_VALUES
#ifndef O_RDONLY
-#define O_RDONLY
00
+#define O_RDONLY 00
#endif
#ifndef O_WRONLY
#endif
#ifndef O_WRONLY
@@
-103,8
+105,8
@@
struct iattr {
#define O_RDWR 02
#endif
#define O_RDWR 02
#endif
-#ifndef O_CREAT
-#define O_CREAT 0100
+#ifndef O_CREAT
+#define O_CREAT
0100
#endif
#ifndef O_EXCL
#endif
#ifndef O_EXCL
@@
-155,7
+157,7
@@
struct iattr {
#define EACCES 13
#endif
#define EACCES 13
#endif
-#ifndef EXDEV
+#ifndef EXDEV
#define EXDEV 18
#endif
#define EXDEV 18
#endif
@@
-212,7
+214,7
@@
struct iattr {
#endif
#endif
-/
/ Mode flags
+/
* Mode flags */
#ifndef S_IFMT
#define S_IFMT 0170000
#ifndef S_IFMT
#define S_IFMT 0170000
@@
-255,7
+257,7
@@
struct iattr {
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
-#ifndef S_IREAD
+#ifndef S_IREAD
#define S_IREAD 0000400
#endif
#define S_IREAD 0000400
#endif