postgresql/config
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
..
ac_func_accept_argtypes.m4
ax_prog_perl_modules.m4
ax_pthread.m4
c-compiler.m4
c-library.m4
check_decls.m4
config.guess Update config.guess and config.sub 2021-04-21 16:33:40 +02:00
config.sub Update config.guess and config.sub 2021-04-21 16:33:40 +02:00
general.m4 Rename configure.in to configure.ac 2020-07-24 10:42:08 +02:00
install-sh
libtool.m4
llvm.m4 jit: configure: Explicitly reference 'native' component. 2020-12-07 19:34:13 -08:00
Makefile
missing
perl.m4
pkg.m4
prep_buildtree
programs.m4
python.m4
tcl.m4
thread_test.c Portability fixes for sigwait. 2021-07-15 12:34:31 +12:00