diff --git a/config/c-library.m4 b/config/c-library.m4 index 76552ac6ed..f6b171d923 100644 --- a/config/c-library.m4 +++ b/config/c-library.m4 @@ -68,12 +68,9 @@ fi AC_DEFUN([PGAC_UNION_SEMUN], [AC_CHECK_TYPES([union semun], [], [], [#include -#ifdef HAVE_SYS_IPC_H #include -#endif -#ifdef HAVE_SYS_SEM_H #include -#endif])])# PGAC_UNION_SEMUN +])])# PGAC_UNION_SEMUN # PGAC_STRUCT_SOCKADDR_STORAGE diff --git a/configure b/configure index 804162e873..9ea343c9a1 100755 --- a/configure +++ b/configure @@ -13874,7 +13874,7 @@ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h fi -for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h net/if.h netinet/tcp.h sys/epoll.h sys/event.h sys/ipc.h sys/personality.h sys/prctl.h sys/procctl.h sys/resource.h sys/sem.h sys/shm.h sys/signalfd.h sys/sockio.h sys/ucred.h termios.h ucred.h +for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h net/if.h netinet/tcp.h sys/epoll.h sys/event.h sys/personality.h sys/prctl.h sys/procctl.h sys/resource.h sys/signalfd.h sys/sockio.h sys/ucred.h termios.h ucred.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" @@ -15092,12 +15092,9 @@ fi ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include -#ifdef HAVE_SYS_IPC_H #include -#endif -#ifdef HAVE_SYS_SEM_H #include -#endif + " if test "x$ac_cv_type_union_semun" = xyes; then : diff --git a/configure.ac b/configure.ac index a9474fd8f3..8da9fc614d 100644 --- a/configure.ac +++ b/configure.ac @@ -1456,13 +1456,10 @@ AC_CHECK_HEADERS(m4_normalize([ netinet/tcp.h sys/epoll.h sys/event.h - sys/ipc.h sys/personality.h sys/prctl.h sys/procctl.h sys/resource.h - sys/sem.h - sys/shm.h sys/signalfd.h sys/sockio.h sys/ucred.h diff --git a/src/backend/port/sysv_sema.c b/src/backend/port/sysv_sema.c index ea3ad6da1c..08a97616d6 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 ea287c733d..e62d4a618e 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" diff --git a/src/backend/storage/ipc/dsm_impl.c b/src/backend/storage/ipc/dsm_impl.c index 69c6df75b4..e1b90c5de4 100644 --- a/src/backend/storage/ipc/dsm_impl.c +++ b/src/backend/storage/ipc/dsm_impl.c @@ -53,13 +53,9 @@ #include #ifndef WIN32 #include -#endif -#include -#ifdef HAVE_SYS_IPC_H #include -#endif -#ifdef HAVE_SYS_SHM_H #include +#include #endif #include "common/file_perm.h" diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index f666b4173b..5f96f71896 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -496,9 +496,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_EVENT_H -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_IPC_H - /* Define to 1 if you have the header file. */ #undef HAVE_SYS_PERSONALITY_H @@ -511,12 +508,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_RESOURCE_H -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_SEM_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_SHM_H - /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SIGNALFD_H diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index b552f439cc..3f69618c4a 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -361,13 +361,10 @@ sub GenerateFiles HAVE_SYSLOG => undef, HAVE_SYS_EPOLL_H => undef, HAVE_SYS_EVENT_H => undef, - HAVE_SYS_IPC_H => undef, HAVE_SYS_PERSONALITY_H => undef, HAVE_SYS_PRCTL_H => undef, HAVE_SYS_PROCCTL_H => undef, HAVE_SYS_RESOURCE_H => undef, - HAVE_SYS_SEM_H => undef, - HAVE_SYS_SHM_H => undef, HAVE_SYS_SIGNALFD_H => undef, HAVE_SYS_SOCKIO_H => undef, HAVE_SYS_STAT_H => 1,