1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Add pg_strnlen() a portable implementation of strlen.

As the OS version is likely going to be more optimized, fall back to
it if available, as detected by configure.
This commit is contained in:
Andres Freund
2017-10-09 15:20:42 -07:00
parent 71c75ddfbb
commit 8a241792f9
7 changed files with 45 additions and 12 deletions

2
configure vendored
View File

@ -8777,7 +8777,7 @@ fi
for ac_func in strerror_r getpwuid_r gethostbyname_r
for ac_func in strerror_r getpwuid_r gethostbyname_r strnlen
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"