]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Remove IS_AF_UNIX macro
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 15 Feb 2022 09:03:52 +0000 (10:03 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 15 Feb 2022 09:16:34 +0000 (10:16 +0100)
commit797129e5910144a2a937b88e145874a15b83578a
tree7d19263d97ad759f3109ec427afff93cc763b03a
parenta59135a81aa781d126c48a516179e43dbb0d428a
Remove IS_AF_UNIX macro

The AF_UNIX macro was being used unprotected by HAVE_UNIX_SOCKETS,
apparently since 2008.  So the redirection through IS_AF_UNIX() is
apparently no longer necessary.  (More generally, all supported
platforms are now HAVE_UNIX_SOCKETS, but even if there were a new
platform in the future, it seems plausible that it would define the
AF_UNIX symbol even without kernel support.)  So remove the
IS_AF_UNIX() macro and make the code a bit more consistent.

Discussion: https://www.postgresql.org/message-id/flat/f2d26815-9832-e333-d52d-72fbc0ade896%40enterprisedb.com
src/backend/libpq/hba.c
src/backend/libpq/pqcomm.c
src/backend/postmaster/postmaster.c
src/include/common/ip.h
src/interfaces/libpq/fe-connect.c