[php-src] PR #13406: Refactor PHP_SOCKADDR_CHECKS
| From: | petk | Date: | Thu, 15 Feb 2024 23:00:51 +0000 |
| Subject: | [php-src] PR #13406: Refactor PHP_SOCKADDR_CHECKS | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25101@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13406
Author: petk
Instead of the project macro, the sockaddr_storage and sockaddr.sa_len can be checked with the
AC_CHECK_TYPES and AC_CHECK_MEMBERS by including the sys/socket.h. Some systems (~1988) didn't
include the sys/types.h in the socket.h (obsolete on current systems).
These macros by default define the HAVE_STRUCT_SOCKADDR_STORAGE and HAVE_STRUCT_SOCKADDR_SA_LEN.