diff options
author | Peter Eisentraut | 2024-07-22 07:47:02 +0000 |
---|---|---|
committer | Peter Eisentraut | 2024-07-22 07:50:30 +0000 |
commit | 683be87fbba02b086cc05789fcbdc289120d1065 (patch) | |
tree | 133232fa0bcc04234ff667cbe54166cb6e57fb85 /configure | |
parent | 7e187a7386cc922c8f770c0460bfc43f4806bd15 (diff) |
Add port/ replacement for strsep()
from OpenBSD, similar to strlcat, strlcpy
There are currently no uses, but some will be added soon.
Reviewed-by: Kyotaro Horiguchi <[email protected]>
Reviewed-by: David Steele <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/[email protected]
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/configure b/configure index 76f06bd8fda..062d40e1ab2 100755 --- a/configure +++ b/configure @@ -15778,6 +15778,16 @@ fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRNLEN $ac_have_decl _ACEOF +ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default" +if test "x$ac_cv_have_decl_strsep" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_STRSEP $ac_have_decl +_ACEOF # We can't use AC_CHECK_FUNCS to detect these functions, because it @@ -15925,6 +15935,19 @@ esac fi +ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" +if test "x$ac_cv_func_strsep" = xyes; then : + $as_echo "#define HAVE_STRSEP 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" strsep.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS strsep.$ac_objext" + ;; +esac + +fi + ac_fn_c_check_func "$LINENO" "pthread_barrier_wait" "ac_cv_func_pthread_barrier_wait" |