Assume that we have utime() and <utime.h>.
Tom Lane <tgl@sss.pgh.pa.us>
Assume that we have utime() and <utime.h>. These are required by POSIX since SUSv2, and no live platforms fail to provide them. On Windows, utime() exists and we bring our own <utime.h>, so we're good there too. So remove the configure probes and ad-hoc substitute code. We don't need to check for utimes() anymore either, since that was only used as a substitute. In passing, make the Windows build include <sys/utime.h> only where we need it, not everywhere. This is part of a series of commits to get rid of no-longer-relevant configure checks and dead src/port/ code. I'm committing them separately to make it easier to back out individual changes if they prove less portable than I expect. Discussion: https://postgr.es/m/15379.1582221614@sss.pgh.pa.us
Files
| Path | Change | +/− |
|---|---|---|
| configure | modified | +2 −2 |
| configure.in | modified | +0 −3 |
| src/backend/libpq/pqcomm.c | modified | +2 −16 |
| src/backend/utils/init/miscinit.c | modified | +2 −25 |
| src/include/pg_config.h.in | modified | +0 −9 |
| src/include/port/win32_msvc/utime.h | modified | +2 −0 |
| src/include/port/win32_port.h | modified | +0 −1 |
| src/tools/msvc/Solution.pm | modified | +0 −3 |
Discussion
- Removing obsolete configure checks 6 messages · 2020-02-20 → 2022-07-23