diff options
author | Thomas Munro <tmunro@postgresql.org> | 2022-08-14 09:53:28 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2022-08-14 09:53:28 +1200 |
commit | 5579388d2dda60ded329a4623f9b4529e91a1b24 (patch) | |
tree | 01eacd42c65c6d419f5b2d6caf85e2cfefc5653b /src/bin/initdb/initdb.c | |
parent | de42bc3ac8f7205f2c302b402e40704ceb46a70c (diff) | |
download | postgresql-5579388d2dda60ded329a4623f9b4529e91a1b24.tar.gz postgresql-5579388d2dda60ded329a4623f9b4529e91a1b24.zip |
Remove replacement code for getaddrinfo.
SUSv3, all targeted Unixes and modern Windows have getaddrinfo() and
related interfaces. Drop the replacement implementation, and adjust
some headers slightly to make sure that the APIs are visible everywhere
using standard POSIX headers and names.
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CA%2BhUKG%2BL_3brvh%3D8e0BW_VfX9h7MtwgN%3DnFHP5o7X2oZucY9dg%40mail.gmail.com
Diffstat (limited to 'src/bin/initdb/initdb.c')
-rw-r--r-- | src/bin/initdb/initdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 4feb5db3faa..a779153c74e 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -50,6 +50,8 @@ #include <dirent.h> #include <fcntl.h> +#include <netdb.h> +#include <sys/socket.h> #include <sys/stat.h> #include <unistd.h> #include <signal.h> @@ -72,7 +74,6 @@ #include "common/string.h" #include "common/username.h" #include "fe_utils/string_utils.h" -#include "getaddrinfo.h" #include "getopt_long.h" #include "mb/pg_wchar.h" #include "miscadmin.h" |