Support use of strnlen() in pre-v11 branches.
Tom Lane <tgl@sss.pgh.pa.us>
Support use of strnlen() in pre-v11 branches. Back-patch a minimal subset of commits fffd651e8 and 46912d9b1, to support strnlen() on all platforms without adding any callers. This will be needed by a following bug fix.
Files
| Path | Change | +/− |
|---|---|---|
| configure | modified | +23 −0 |
| configure.in | modified | +2 −2 |
| src/include/pg_config.h.in | modified | +7 −0 |
| src/include/pg_config.h.win32 | modified | +7 −0 |
| src/include/port.h | modified | +4 −0 |
| src/interfaces/libpq/.gitignore | modified | +1 −0 |
| src/interfaces/libpq/Makefile | modified | +3 −3 |
| src/port/strnlen.c | added | +33 −0 |