diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index f93639e69c8..a48333c3e27 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -277,6 +277,18 @@ CWD_API int php_sys_readlink(const char *link, char *target, size_t target_len){ } /* }}} */ +CWD_API int php_sys_stat(const char *path, struct stat *buf) /* {{{ */ +{ + return php_sys_stat_ex(path, buf, 0); +} +/* }}} */ + +CWD_API int php_sys_lstat(const char *path, struct stat *buf) /* {{{ */ +{ + return php_sys_stat_ex(path, buf, 1); +} +/* }}} */ + CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat) /* {{{ */ { WIN32_FILE_ATTRIBUTE_DATA data; diff --git a/TSRM/tsrm_virtual_cwd.h b/TSRM/tsrm_virtual_cwd.h index d75e2394a9f..cfa8a881426 100644 --- a/TSRM/tsrm_virtual_cwd.h +++ b/TSRM/tsrm_virtual_cwd.h @@ -131,8 +131,8 @@ typedef unsigned short mode_t; #ifdef TSRM_WIN32 CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat); -# define php_sys_stat(path, buf) php_sys_stat_ex(path, buf, 0) -# define php_sys_lstat(path, buf) php_sys_stat_ex(path, buf, 1) +CWD_API int php_sys_stat(const char *path, struct stat *buf); +CWD_API int php_sys_lstat(const char *path, struct stat *buf); CWD_API int php_sys_readlink(const char *link, char *target, size_t target_len); #else # define php_sys_stat stat