summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorThomas Munro2022-08-13 11:34:12 +0000
committerThomas Munro2022-08-13 12:09:47 +0000
commit37a65d1db14658bc75faa3aea7bd5a064118d135 (patch)
treef1e1c44e244dbb70a711bff04da335d118c5defc /src/backend
parent7e50b4e3c52aaa13e86e0560d1382844074c9f1b (diff)
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 <[email protected]> Discussion: https://postgr.es/m/CA%2BhUKG%2BL_3brvh%3D8e0BW_VfX9h7MtwgN%3DnFHP5o7X2oZucY9dg%40mail.gmail.com
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/port/sysv_sema.c6
-rw-r--r--src/backend/port/sysv_shmem.c8
-rw-r--r--src/backend/storage/ipc/dsm_impl.c6
3 files changed, 4 insertions, 16 deletions
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 <signal.h>
#include <unistd.h>
#include <sys/file.h>
-#include <sys/stat.h>
-#ifdef HAVE_SYS_IPC_H
#include <sys/ipc.h>
-#endif
-#ifdef HAVE_SYS_SEM_H
#include <sys/sem.h>
-#endif
+#include <sys/stat.h>
#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 <signal.h>
#include <unistd.h>
#include <sys/file.h>
-#include <sys/mman.h>
-#include <sys/stat.h>
-#ifdef HAVE_SYS_IPC_H
#include <sys/ipc.h>
-#endif
-#ifdef HAVE_SYS_SHM_H
+#include <sys/mman.h>
#include <sys/shm.h>
-#endif
+#include <sys/stat.h>
#include "miscadmin.h"
#include "port/pg_bitutils.h"
diff --git a/src/backend/storage/ipc/dsm_impl.c b/src/backend/storage/ipc/dsm_impl.c
index 69c6df75b48..e1b90c5de46 100644
--- a/src/backend/storage/ipc/dsm_impl.c
+++ b/src/backend/storage/ipc/dsm_impl.c
@@ -53,13 +53,9 @@
#include <unistd.h>
#ifndef WIN32
#include <sys/mman.h>
-#endif
-#include <sys/stat.h>
-#ifdef HAVE_SYS_IPC_H
#include <sys/ipc.h>
-#endif
-#ifdef HAVE_SYS_SHM_H
#include <sys/shm.h>
+#include <sys/stat.h>
#endif
#include "common/file_perm.h"