Skip to content

Commit 12db8b9

Browse files
devnexennikic
authored andcommitted
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.
1 parent c4677af commit 12db8b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/zend_file_cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ int zend_file_cache_script_store(zend_persistent_script *script, int in_shm)
870870
info.checksum = zend_adler32(info.checksum, (unsigned char*)ZSTR_VAL((zend_string*)ZCG(mem)), info.str_size);
871871

872872
#ifdef HAVE_SYS_UIO_H
873-
vec[0].iov_base = &info;
873+
vec[0].iov_base = (void *)&info;
874874
vec[0].iov_len = sizeof(info);
875875
vec[1].iov_base = buf;
876876
vec[1].iov_len = script->size;

0 commit comments

Comments
 (0)