aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2022-08-05 09:19:36 +1200
committerThomas Munro <tmunro@postgresql.org>2022-08-05 09:19:36 +1200
commit098f4d813b69b4f88943afa777ae4bba5166f803 (patch)
tree41a7ade08efe9124b19ae11acdcd68c297c6f271 /src
parentbdb657edd6db1e471437d62f4642674a801ef32c (diff)
downloadpostgresql-098f4d813b69b4f88943afa777ae4bba5166f803.tar.gz
postgresql-098f4d813b69b4f88943afa777ae4bba5166f803.zip
Remove configure probe for shm_open.
shm_open() is in SUSv2 and all targeted Unix systems have it. We retain a HAVE_SHM_OPEN macro, because it's clearer to readers than something like !defined(WIN32). Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/CA+hUKGJ3LHeP9w5Fgzdr4G8AnEtJ=z=p6hGDEm4qYGEUX5B6fQ@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/include/pg_config.h.in3
-rw-r--r--src/include/port.h1
-rw-r--r--src/tools/msvc/Solution.pm1
3 files changed, 1 insertions, 4 deletions
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index 93173d67c0b..5015ac6a3ed 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -472,9 +472,6 @@
/* Define to 1 if you have the `setsid' function. */
#undef HAVE_SETSID
-/* Define to 1 if you have the `shm_open' function. */
-#undef HAVE_SHM_OPEN
-
/* Define to 1 if the system has the type `socklen_t'. */
#undef HAVE_SOCKLEN_T
diff --git a/src/include/port.h b/src/include/port.h
index 2c25498add5..a8598532c01 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -525,6 +525,7 @@ extern bool wait_result_is_any_signal(int exit_status, bool include_command_not_
*/
#ifndef WIN32
#define HAVE_GETRLIMIT 1
+#define HAVE_SHM_OPEN 1
#endif
#endif /* PG_PORT_H */
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index c703708b50b..5499498137c 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -351,7 +351,6 @@ sub GenerateFiles
HAVE_SETPROCTITLE => undef,
HAVE_SETPROCTITLE_FAST => undef,
HAVE_SETSID => undef,
- HAVE_SHM_OPEN => undef,
HAVE_SOCKLEN_T => 1,
HAVE_SPINLOCKS => 1,
HAVE_STDBOOL_H => 1,