diff options
author | Anatol Belski <ab@php.net> | 2015-05-25 13:47:31 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-05-25 18:03:28 +0200 |
commit | c444c4172f219b7461e2d38e1bbd87f9eeb2a0cd (patch) | |
tree | f2cd1de69efe091997abe30d239dff3a1cbbb5c7 /Zend/zend_virtual_cwd.h | |
parent | cfadcfc73486828b53ec45217fd00659a1a2e918 (diff) | |
download | php-git-c444c4172f219b7461e2d38e1bbd87f9eeb2a0cd.tar.gz |
further cleanups with S_IF* macros generalized declarations
Diffstat (limited to 'Zend/zend_virtual_cwd.h')
-rw-r--r-- | Zend/zend_virtual_cwd.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/zend_virtual_cwd.h b/Zend/zend_virtual_cwd.h index 7e066f0016..64f78fe4af 100644 --- a/Zend/zend_virtual_cwd.h +++ b/Zend/zend_virtual_cwd.h @@ -337,6 +337,15 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(void); #endif +/* Global stat declarations */ +#ifndef _S_IFDIR +#define _S_IFDIR S_IFDIR +#endif + +#ifndef _S_IFREG +#define _S_IFREG S_IFREG +#endif + #ifndef S_ISDIR #define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR) #endif @@ -349,6 +358,8 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(void); #define S_ISLNK(mode) (((mode)&S_IFMT) == S_IFLNK) #endif +#ifndef S_IXROOT #define S_IXROOT ( S_IXUSR | S_IXGRP | S_IXOTH ) +#endif #endif /* VIRTUAL_CWD_H */ |