mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
e074e029ee
The name "rem_size" is used by a macro in a system header on AIX, specifically `sys/xmem.h`. Without changing the name, you get the name mangled like so: ``` In file included from /usr/include/sys/uio.h:92:0, from /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include-fixed-7.1/sys/socket.h:83, from /usr/include/sys/syslog.h:151, from /usr/include/syslog.h:29, from /home/calvin/rpmbuild/BUILD/php-8.0.0RC5/main/php_syslog.h:27, from /home/calvin/rpmbuild/BUILD/php-8.0.0RC5/main/php.h:318, from /home/calvin/rpmbuild/BUILD/php-8.0.0RC5/ext/sockets/sendrecvmsg.c:17: /home/calvin/rpmbuild/BUILD/php-8.0.0RC5/ext/sockets/sendrecvmsg.c: In function 'zif_socket_cmsg_space': /home/calvin/rpmbuild/BUILD/php-8.0.0RC5/ext/sockets/sendrecvmsg.c:298:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token size_t rem_size = ZEND_LONG_MAX - entry->size; ^ /home/calvin/rpmbuild/BUILD/php-8.0.0RC5/ext/sockets/sendrecvmsg.c:298:10: error: expected expression before '.' token /home/calvin/rpmbuild/BUILD/php-8.0.0RC5/ext/sockets/sendrecvmsg.c:299:18: error: 'u2' undeclared (first use in this function) size_t n_max = rem_size / entry->var_el_size; ^ /home/calvin/rpmbuild/BUILD/php-8.0.0RC5/ext/sockets/sendrecvmsg.c:299:18: note: each undeclared identifier is reported only once for each function it appears in ``` ...because of the declaration in `sys/xmem.h`: ``` ``` This just renames the variable so that it won't trip on this definition. Tested to fix the build on IBM i PASE. Closes GH-6453. |
||
---|---|---|
.. | ||
tests | ||
config.m4 | ||
config.w32 | ||
conversions.c | ||
conversions.h | ||
CREDITS | ||
multicast.c | ||
multicast.h | ||
php_sockets.h | ||
sendrecvmsg.c | ||
sendrecvmsg.h | ||
sockaddr_conv.c | ||
sockaddr_conv.h | ||
sockets_arginfo.h | ||
sockets.c | ||
sockets.stub.php | ||
unix_socket_constants.h | ||
win32_socket_constants.h | ||
windows_common.h |