diff options
author | David Carlier <devnexen@gmail.com> | 2020-08-05 10:09:18 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-05 15:17:51 +0200 |
commit | 12db8b90a74627bca7923343f6758d0b2ce61eac (patch) | |
tree | 3f48dca7331e512e1727790851e15d6618b35d6f | |
parent | c4677af67e14e797f3184d5ef7f0430fc54db933 (diff) | |
download | php-git-12db8b90a74627bca7923343f6758d0b2ce61eac.tar.gz |
Fix iov_base pointer type for illumos
These systems has two versions of the iovec interface dependent on
compiler flags passed, the legacy version causing little build issue.
Closes GH-5939.
-rw-r--r-- | ext/opcache/zend_file_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/zend_file_cache.c b/ext/opcache/zend_file_cache.c index ac6f84b7d1..8b6ebd9fe7 100644 --- a/ext/opcache/zend_file_cache.c +++ b/ext/opcache/zend_file_cache.c @@ -870,7 +870,7 @@ int zend_file_cache_script_store(zend_persistent_script *script, int in_shm) info.checksum = zend_adler32(info.checksum, (unsigned char*)ZSTR_VAL((zend_string*)ZCG(mem)), info.str_size); #ifdef HAVE_SYS_UIO_H - vec[0].iov_base = &info; + vec[0].iov_base = (void *)&info; vec[0].iov_len = sizeof(info); vec[1].iov_base = buf; vec[1].iov_len = script->size; |