1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-25 21:42:33 +03:00
Thomas Munro 5865e064ab Portability fixes for sigwait.
Build farm animals running ancient HPUX and Solaris have a non-standard
sigwait() from draft versions of POSIX, so they didn't like commit
7c09d279.  To avoid the problem in general, only try to use sigwait() if
it's declared by <signal.h> and matches the expected declaration.  To
select the modern declaration on Solaris (even in non-threaded
programs), move -D_POSIX_PTHREAD_SEMANTICS into the right place to
affect all translation units.

Also fix the error checking.  Modern sigwait() doesn't set errno.

Thanks to Tom Lane for help with this.

Discussion: https://postgr.es/m/3187588.1626136248%40sss.pgh.pa.us
2021-07-15 12:34:31 +12:00
..
2021-04-21 16:33:40 +02:00
2020-07-24 10:42:08 +02:00
2012-08-21 23:42:43 -04:00
2010-09-20 22:08:53 +02:00
2019-01-18 08:38:34 +01:00
2017-03-23 15:28:48 -04:00
2019-03-27 23:36:00 +01:00
2019-01-18 08:38:34 +01:00
2021-07-15 12:34:31 +12:00