summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorThomas Munro2022-07-23 21:32:34 +0000
committerThomas Munro2022-07-23 21:32:34 +0000
commitfb12becdfb89e35f3f56768cefe1a837f0afafaf (patch)
treeeea26473ddbbd0284db10c287ac3a0a7c6167a22 /configure.ac
parent86e5eb4f58a276870fbd29e3711b36e4a4280979 (diff)
Remove dead handling for pre-POSIX sigwait().
sigwait() is in SUSv2 and all targeted Unix systems have it. An earlier pre-standard function prototype existed on some older systems, but we no longer need a workaround for that. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Greg Stark <stark@mit.edu> Reviewed-by: Robert Haas <robertmhaas@gmail.com> Discussion: https://postgr.es/m/CA+hUKGJ3LHeP9w5Fgzdr4G8AnEtJ=z=p6hGDEm4qYGEUX5B6fQ@mail.gmail.com
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac27
1 files changed, 0 insertions, 27 deletions
diff --git a/configure.ac b/configure.ac
index 9a3483f206b..ff3ef3cf0be 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1838,33 +1838,6 @@ PGAC_CHECK_BUILTIN_FUNC_PTR([__builtin_frame_address], [0])
# in case it finds that _LARGEFILE_SOURCE has to be #define'd for that.
AC_FUNC_FSEEKO
-# Make sure there's a declaration for sigwait(), then make sure
-# that it conforms to the POSIX standard (there seem to still be
-# some platforms out there with pre-POSIX sigwait()). On Solaris,
-# _POSIX_PTHREAD_SEMANTICS affects the result, but we already
-# added that to CPPFLAGS.
-AC_CHECK_DECLS(sigwait, [], [], [#include <signal.h>])
-if test "x$ac_cv_have_decl_sigwait" = xyes; then
- AC_CACHE_CHECK([for POSIX-conforming sigwait declaration],
- [pgac_cv_have_posix_decl_sigwait],
- [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
- #include <signal.h>
- int sigwait(const sigset_t *set, int *sig);
- ],
- [])],
- [pgac_cv_have_posix_decl_sigwait=yes],
- [pgac_cv_have_posix_decl_sigwait=no])])
-fi
-if test "x$pgac_cv_have_posix_decl_sigwait" = xyes; then
- AC_DEFINE(HAVE_POSIX_DECL_SIGWAIT, 1,
- [Define to 1 if you have a POSIX-conforming sigwait declaration.])
-else
- # On non-Windows, libpq requires POSIX sigwait() for thread safety.
- if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
- AC_MSG_ERROR([POSIX-conforming sigwait is required to enable thread safety.])
- fi
-fi
-
# posix_fadvise() is a no-op on Solaris, so don't incur function overhead
# by calling it, 2009-04-02
# http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c