X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Fyportenv.h;h=5b7d1887adfeaec791375559b9af8a4504d294a8;hb=e57244da6103ae3db5620b114315661bc47e4fb7;hp=526b38df41b2c1dde3629b4b09eb9f6ff2a26f8d;hpb=319d4f76f0e10d1d6427120221237950e373d74b;p=yaffs2.git diff --git a/direct/yportenv.h b/direct/yportenv.h index 526b38d..5b7d188 100644 --- a/direct/yportenv.h +++ b/direct/yportenv.h @@ -272,6 +272,17 @@ struct iattr { #endif +#ifndef S_IRUSR +#define S_IRUSR 0000400 +#endif + +#ifndef S_IWUSR +#define S_IWUSR 0000200 +#endif + +#ifndef S_IXUSR +#define S_IXUSR 0000100 +#endif #ifndef S_IREAD #define S_IREAD 0000400 @@ -285,6 +296,16 @@ struct iattr { #define S_IEXEC 0000100 #endif + +#else +#include +#include +#include +#endif + +#endif + +/* Create some less common define values if they don't exist */ #ifndef XATTR_CREATE #define XATTR_CREATE 1 #endif @@ -300,12 +321,8 @@ struct iattr { #define F_OK 0 #endif -#else -#include -#include -#include -#endif - +#ifndef S_ISSOCK +#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) #endif #ifndef Y_DUMP_STACK