diff options
author | Thomas Munro <tmunro@postgresql.org> | 2022-08-14 09:57:48 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2022-08-14 09:57:48 +1200 |
commit | 52ea29045b79a5f996e454ac6c7f3bcd64aef572 (patch) | |
tree | 4b23198477e801d1cb87bb67cb1fa5efce1537fd /src | |
parent | 5579388d2dda60ded329a4623f9b4529e91a1b24 (diff) | |
download | postgresql-52ea29045b79a5f996e454ac6c7f3bcd64aef572.tar.gz postgresql-52ea29045b79a5f996e454ac6c7f3bcd64aef572.zip |
Remove configure probe for gethostbyname_r.
It was only used by src/port/getaddrinfo.c, removed by the previous
commit.
Discussion: https://postgr.es/m/CA%2BhUKGJFLPCtAC58EAimF6a6GPw30TU_59FUY%3DGWB_kC%3DJEmVQ%40mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/include/pg_config.h.in | 3 | ||||
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 2 | ||||
-rw-r--r-- | src/tools/msvc/Solution.pm | 1 |
3 files changed, 1 insertions, 5 deletions
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index 17c1dbd1652..3087883401e 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -178,9 +178,6 @@ */ #undef HAVE_GCC__SYNC_INT64_CAS -/* Define to 1 if you have the `gethostbyname_r' function. */ -#undef HAVE_GETHOSTBYNAME_R - /* Define to 1 if you have the `getifaddrs' function. */ #undef HAVE_GETIFADDRS diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 0b8fabc7e81..1e057db336a 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -2229,7 +2229,7 @@ connectDBComplete(PGconn *conn) * will not block. * o If you do not supply an IP address for the remote host (i.e. you * supply a host name instead) then PQconnectStart will block on - * gethostbyname. You will be fine if using Unix sockets (i.e. by + * getaddrinfo. You will be fine if using Unix sockets (i.e. by * supplying neither a host name nor a host address). * o If your backend wants to use Kerberos authentication then you must * supply both a host name and a host address, otherwise this function diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index 17999d0698b..92722a12711 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -256,7 +256,6 @@ sub GenerateFiles HAVE_GCC__SYNC_INT32_CAS => undef, HAVE_GCC__SYNC_INT32_TAS => undef, HAVE_GCC__SYNC_INT64_CAS => undef, - HAVE_GETHOSTBYNAME_R => undef, HAVE_GETIFADDRS => undef, HAVE_GETOPT => undef, HAVE_GETOPT_H => undef, |