Support use of strnlen() in pre-v11 branches.

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

Commit: 7cdb976324d3a111fcad1901019e27d5e75715be
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2021-06-07T17:12:35Z
Releases: 9.6.23
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

PathChange+/−
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