diff options
Diffstat (limited to 'ext/fileinfo/libmagic/magic.c')
| -rw-r--r-- | ext/fileinfo/libmagic/magic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/fileinfo/libmagic/magic.c b/ext/fileinfo/libmagic/magic.c index ba66f0b681..7f5cff6a7b 100644 --- a/ext/fileinfo/libmagic/magic.c +++ b/ext/fileinfo/libmagic/magic.c @@ -81,7 +81,7 @@ FILE_RCSID("@(#)$File: magic.c,v 1.81 2013/11/29 15:42:51 christos Exp $") #endif private void close_and_restore(const struct magic_set *, const char *, int, - const struct stat *); + const zend_stat_t *); private int unreadable_info(struct magic_set *, mode_t, const char *); #if 0 private const char* get_default_magic(void); @@ -286,7 +286,7 @@ magic_list(struct magic_set *ms, const char *magicfile) private void close_and_restore(const struct magic_set *ms, const char *name, int fd, - const struct stat *sb) + const zend_stat_t *sb) { if ((ms->flags & MAGIC_PRESERVE_ATIME) != 0) { @@ -350,7 +350,7 @@ file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream) { int rv = -1; unsigned char *buf; - struct stat sb; + zend_stat_t sb; ssize_t nbytes = 0; /* number of bytes read from a datafile */ int no_in_stream = 0; TSRMLS_FETCH(); |
