[php-src] PR #17129: Include relevant system headers before defining fallbacks
| From: | cmb69 | Date: | Thu, 12 Dec 2024 16:29:45 +0000 |
| Subject: | [php-src] PR #17129: Include relevant system headers before defining fallbacks | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29984@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17129
Author: cmb69
Otherwise we may define the fallbacks, and later inclusion of the system headers may attempt to
redefine those.
Fixes GH-17112.
---
Note that I don't know if we need to include both arpa/inet.h and netinet/in.h to avoid this
issue for
INADDR_NONE, but it likely doesn't hurt, and #17124 seems to be a
cleaner solution anyway (however, we cannot apply that to stable branches, so this is more a
stop-gap measure).
cc @nielsdos (since you've fixed the other part of #17112).