php-src/ext/sockets
Calvin Buckley e074e029ee sockets: Fix variable/macro name collision on AIX
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.
2020-11-25 11:54:40 +01:00
..
tests Strip trailing line breaks and periods from Windows error messages 2020-11-12 16:42:28 +01:00
config.m4 Remove unused MISSING_MSGHDR_MSGFLAGS 2019-07-18 02:17:14 +02:00
config.w32 Fix Windows build for shared ext/sockets 2020-09-08 22:54:21 +02:00
conversions.c Convert resources to objects in ext/sockets 2020-08-03 23:26:38 +02:00
conversions.h
CREDITS
multicast.c Fix #79923: fix socket_set_option_bindtodevice test 2020-08-03 15:03:07 +02:00
multicast.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_sockets.h Fix Windows build for shared ext/sockets 2020-09-08 22:54:21 +02:00
sendrecvmsg.c sockets: Fix variable/macro name collision on AIX 2020-11-25 11:54:40 +01:00
sendrecvmsg.h
sockaddr_conv.c
sockaddr_conv.h
sockets_arginfo.h Update ext/sockets parameter names 2020-10-06 12:12:43 +02:00
sockets.c Fix double free when socket_accept fails 2020-11-11 12:48:25 +01:00
sockets.stub.php Update ext/sockets parameter names 2020-10-06 12:12:43 +02:00
unix_socket_constants.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
win32_socket_constants.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
windows_common.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00