mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Enable net_get_interfaces on IBM i PASE
On IBM i, getifaddrs is available renamed as Qp2getifaddrs; freeifaddrs and struct ifaddr follow a similar fate. I assume this is in case AIX decides to add it (as if). As such, just use the same implementation, but rename the standard ones to the IBM i definitions and include its header.
This commit is contained in:
parent
21f2ff79de
commit
4f51a11a84
2 changed files with 10 additions and 1 deletions
|
@ -429,7 +429,9 @@ function getmxrr(string $hostname, &$hosts, &$weights = null): bool {}
|
|||
|
||||
/* net.c */
|
||||
|
||||
#if defined(PHP_WIN32) || HAVE_GETIFADDRS
|
||||
function net_get_interfaces(): array|false {}
|
||||
#endif
|
||||
|
||||
/* ftok.c */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue