]> granicus.if.org Git - php/commit
Remove not needed checking for <errno.h>
authorPeter Kokot <peterkokot@gmail.com>
Wed, 5 Sep 2018 19:34:40 +0000 (21:34 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Sun, 9 Sep 2018 08:19:04 +0000 (10:19 +0200)
commit50b9ef8d9435d23be40cea7fb484a02e99fdb617
tree60fa39a89667cc2f830a43c4aa142df64f6e1a68
parent77118fc925b3e84be02a80d8da6bbbb47f8c37e1
Remove not needed checking for <errno.h>

Header `<errno.h>` is part of the standard C89 headers [1] and on
current systems checking is not need anymore since PHP requires at
least C89. This is noted also by Autoconf itself in the docs and
code [2].

The Autoconf check defined the `HAVE_ERRNO_H` symbol when building PHP
with sockets extension or fpm sapi. This symbol is not utilized across
the PHP source code except in the current version of bundled GD library
which has worked ok so far also with sockets extension or fpm sapi
disabled anyway.

Refs:
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
ext/sockets/config.m4
sapi/fpm/config.m4