diff options
author | Anatol Belski <ab@php.net> | 2014-12-16 11:46:06 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-12-16 12:20:58 +0100 |
commit | bee4a28433563b9c216ab48502c82771ae69b72d (patch) | |
tree | 145bfa66bddb16baab3a50d036fc8207067fb056 /sapi/phpdbg/phpdbg_prompt.c | |
parent | f1d1185c64e73ae19d7339cfe5e0e0f92da0e4f0 (diff) | |
download | php-git-bee4a28433563b9c216ab48502c82771ae69b72d.tar.gz |
use portable struct stat
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_prompt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index aa431a8ae0..f567a427af 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -306,7 +306,7 @@ void phpdbg_string_init(char *buffer TSRMLS_DC) { void phpdbg_try_file_init(char *init_file, size_t init_file_len, zend_bool free_init TSRMLS_DC) /* {{{ */ { - struct stat sb; + zend_stat_t sb; if (init_file && VCWD_STAT(init_file, &sb) != -1) { FILE *fp = fopen(init_file, "r"); @@ -374,7 +374,7 @@ void phpdbg_init(char *init_file, size_t init_file_len, zend_bool use_default TS PHPDBG_COMMAND(exec) /* {{{ */ { - struct stat sb; + zend_stat_t sb; if (VCWD_STAT(param->str, &sb) != FAILURE) { if (sb.st_mode & (S_IFREG|S_IFLNK)) { |