projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update to support Linux 3.14/3.15
[yaffs2.git]
/
direct
/
yportenv.h
diff --git
a/direct/yportenv.h
b/direct/yportenv.h
index a797c8ad0a6fc8e75ad57fb0b71bd96b7a672607..d6e073d69d2e3efd4c63e6ad866fa5afe817b476 100644
(file)
--- a/
direct/yportenv.h
+++ b/
direct/yportenv.h
@@
-22,7
+22,8
@@
#ifdef CONFIG_YAFFS_DEFINES_TYPES
typedef unsigned char u8;
typedef unsigned short u16;
#ifdef CONFIG_YAFFS_DEFINES_TYPES
typedef unsigned char u8;
typedef unsigned short u16;
-typedef unsigned u32;
+typedef unsigned int u32;
+typedef signed int s32;
#endif
#endif
@@
-94,7
+95,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
@@
-105,8
+106,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
@@
-157,7
+158,7
@@
struct iattr {
#define EACCES 13
#endif
#define EACCES 13
#endif
-#ifndef EXDEV
+#ifndef EXDEV
#define EXDEV 18
#endif
#define EXDEV 18
#endif
@@
-214,7
+215,7
@@
struct iattr {
#endif
#endif
-/
/ Mode flags
+/
* Mode flags */
#ifndef S_IFMT
#define S_IFMT 0170000
#ifndef S_IFMT
#define S_IFMT 0170000
@@
-257,7
+258,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