From 37a65d1db14658bc75faa3aea7bd5a064118d135 Mon Sep 17 00:00:00 2001 From: Thomas Munro Date: Sat, 13 Aug 2022 23:34:12 +1200 Subject: Remove configure probes for sys/ipc.h, sys/sem.h, sys/shm.h. These are in SUSv2 and every targeted Unix system has them. It's not hard to avoid including them on Windows system because they're mostly used in platform-specific translation units. Reviewed-by: Tom Lane Discussion: https://postgr.es/m/CA%2BhUKG%2BL_3brvh%3D8e0BW_VfX9h7MtwgN%3DnFHP5o7X2oZucY9dg%40mail.gmail.com --- src/backend/port/sysv_sema.c | 6 +----- src/backend/port/sysv_shmem.c | 8 ++------ 2 files changed, 3 insertions(+), 11 deletions(-) (limited to 'src/backend/port') diff --git a/src/backend/port/sysv_sema.c b/src/backend/port/sysv_sema.c index ea3ad6da1c9..08a97616d6d 100644 --- a/src/backend/port/sysv_sema.c +++ b/src/backend/port/sysv_sema.c @@ -17,13 +17,9 @@ #include #include #include -#include -#ifdef HAVE_SYS_IPC_H #include -#endif -#ifdef HAVE_SYS_SEM_H #include -#endif +#include #include "miscadmin.h" #include "storage/ipc.h" diff --git a/src/backend/port/sysv_shmem.c b/src/backend/port/sysv_shmem.c index ea287c733df..e62d4a618ea 100644 --- a/src/backend/port/sysv_shmem.c +++ b/src/backend/port/sysv_shmem.c @@ -22,14 +22,10 @@ #include #include #include -#include -#include -#ifdef HAVE_SYS_IPC_H #include -#endif -#ifdef HAVE_SYS_SHM_H +#include #include -#endif +#include #include "miscadmin.h" #include "port/pg_bitutils.h" -- cgit v1.2.3