From 12db8b90a74627bca7923343f6758d0b2ce61eac Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 5 Aug 2020 10:09:18 +0100 Subject: [PATCH] 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. --- ext/opcache/zend_file_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0