diff options
author | Thomas Munro <tmunro@postgresql.org> | 2022-07-24 09:32:34 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2022-07-24 09:32:34 +1200 |
commit | fb12becdfb89e35f3f56768cefe1a837f0afafaf (patch) | |
tree | eea26473ddbbd0284db10c287ac3a0a7c6167a22 /src/bin/psql/startup.c | |
parent | 86e5eb4f58a276870fbd29e3711b36e4a4280979 (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 'src/bin/psql/startup.c')
-rw-r--r-- | src/bin/psql/startup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/startup.c b/src/bin/psql/startup.c index 7c2f555f15c..e2e5678e2d2 100644 --- a/src/bin/psql/startup.c +++ b/src/bin/psql/startup.c @@ -110,7 +110,7 @@ log_locus_callback(const char **filename, uint64 *lineno) } } -#ifdef HAVE_POSIX_DECL_SIGWAIT +#ifndef WIN32 static void empty_signal_handler(SIGNAL_ARGS) { @@ -308,7 +308,7 @@ main(int argc, char *argv[]) psql_setup_cancel_handler(); -#ifdef HAVE_POSIX_DECL_SIGWAIT +#ifndef WIN32 /* * do_watch() needs signal handlers installed (otherwise sigwait() will |