From 2f8d918359ccb34533690735eb46b851002ac698 Mon Sep 17 00:00:00 2001 From: Thomas Munro Date: Thu, 18 Aug 2022 16:11:58 +1200 Subject: Remove configure probe for net/if.h. is in SUSv3 and all targeted Unixes have it. It's used in a region that is already ifdef'd out for Windows. We're not using it for any standard definitions, but it's where AIX defines conventional socket ioctl numbers. Discussion: https://postgr.es/m/CA+hUKGKErNfhmvb_H0UprEmp4LPzGN06yR2_0tYikjzB-2ECMw@mail.gmail.com --- src/backend/libpq/ifaddr.c | 3 --- src/include/pg_config.h.in | 3 --- src/tools/msvc/Solution.pm | 1 - 3 files changed, 7 deletions(-) (limited to 'src') diff --git a/src/backend/libpq/ifaddr.c b/src/backend/libpq/ifaddr.c index f985631797..a0cad5405e 100644 --- a/src/backend/libpq/ifaddr.c +++ b/src/backend/libpq/ifaddr.c @@ -323,10 +323,7 @@ pg_foreach_ifaddr(PgIfAddrCallback callback, void *cb_data) #else /* !HAVE_GETIFADDRS && !WIN32 */ #include - -#ifdef HAVE_NET_IF_H #include -#endif #ifdef HAVE_SYS_SOCKIO_H #include diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index 3087883401..eff09ba0bc 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -325,9 +325,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_TCP_H -/* Define to 1 if you have the header file. */ -#undef HAVE_NET_IF_H - /* Define to 1 if you have the `OPENSSL_init_ssl' function. */ #undef HAVE_OPENSSL_INIT_SSL diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index 92722a1271..6aeab3aefc 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -305,7 +305,6 @@ sub GenerateFiles HAVE_MEMSET_S => undef, HAVE_MKDTEMP => undef, HAVE_NETINET_TCP_H => undef, - HAVE_NET_IF_H => undef, HAVE_OPENSSL_INIT_SSL => undef, HAVE_OSSP_UUID_H => undef, HAVE_PAM_PAM_APPL_H => undef, -- cgit v1.2.3