Test honestly for <sys/signalfd.h>.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c23461a22a1ead0a34dc209c2918ec4ccaf61475
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-02-09T19:24:55Z
Releases: 14.3
Test honestly for <sys/signalfd.h>.

Commit 6a2a70a02 supposed that any platform having <sys/epoll.h>
would also have <sys/signalfd.h>.  It turns out there are still a
few people using platforms where that's not so, so we'd better make
a separate configure probe for it.  But since it took this long to
notice, I'm content with the decision to not have a separate code
path for epoll-only machines; we'll just fall back to using poll()
for these stragglers.

Per gripe from Gabriela Serventi.  Back-patch to v14 where this
code came in.

Discussion: https://postgr.es/m/CAHOHWE-JjJDfcYuLAAEO7Jk07atFAU47z8TzHzg71gbC0aMy=g@mail.gmail.com

Files

PathChange+/−
configure modified +1 −1
configure.ac modified +1 −0
src/backend/storage/ipc/latch.c modified +4 −5
src/include/pg_config.h.in modified +3 −0
src/tools/msvc/Solution.pm modified +1 −0

Discussion