aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2022-08-18 16:12:20 +1200
committerThomas Munro <tmunro@postgresql.org>2022-08-18 16:31:11 +1200
commit2cea02fb85b9b00c3b95d8cd0e39cf91cd2ce289 (patch)
treed5becdab7ff718c391a01f8f782c874523cca473 /src
parent2f8d918359ccb34533690735eb46b851002ac698 (diff)
downloadpostgresql-2cea02fb85b9b00c3b95d8cd0e39cf91cd2ce289.tar.gz
postgresql-2cea02fb85b9b00c3b95d8cd0e39cf91cd2ce289.zip
Remove configure probe for sys/sockio.h.
On BSD-family systems, header <sys/sockio.h> defines socket ioctl numbers like SIOCGIFCONF. Only AIX is using those now, but it defines them in <net/if.h> anyway. Supposing some PostgreSQL hacker wants to test that AIX-only code path on a more common development system by pretending not to have getifaddrs(). It's enough to include <sys/ioctl.h>, at least on macOS, FreeBSD and Linux, and we're already doing that.
Diffstat (limited to 'src')
-rw-r--r--src/backend/libpq/ifaddr.c4
-rw-r--r--src/include/pg_config.h.in3
-rw-r--r--src/tools/msvc/Solution.pm1
3 files changed, 0 insertions, 8 deletions
diff --git a/src/backend/libpq/ifaddr.c b/src/backend/libpq/ifaddr.c
index a0cad5405e1..73a8707324f 100644
--- a/src/backend/libpq/ifaddr.c
+++ b/src/backend/libpq/ifaddr.c
@@ -325,10 +325,6 @@ pg_foreach_ifaddr(PgIfAddrCallback callback, void *cb_data)
#include <sys/ioctl.h>
#include <net/if.h>
-#ifdef HAVE_SYS_SOCKIO_H
-#include <sys/sockio.h>
-#endif
-
#if defined(SIOCGIFCONF)
/*
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index eff09ba0bc5..de8daa2f114 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -490,9 +490,6 @@
/* Define to 1 if you have the <sys/signalfd.h> header file. */
#undef HAVE_SYS_SIGNALFD_H
-/* Define to 1 if you have the <sys/sockio.h> header file. */
-#undef HAVE_SYS_SOCKIO_H
-
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index 6aeab3aefca..5ad275b2236 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -359,7 +359,6 @@ sub GenerateFiles
HAVE_SYS_PRCTL_H => undef,
HAVE_SYS_PROCCTL_H => undef,
HAVE_SYS_SIGNALFD_H => undef,
- HAVE_SYS_SOCKIO_H => undef,
HAVE_SYS_STAT_H => 1,
HAVE_SYS_TYPES_H => 1,
HAVE_SYS_UCRED_H => undef,