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.ac | |
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 <horikyota.ntt@gmail.com>
Reviewed-by: David Steele <david@pgmasters.net>
Discussion: https://www.postgresql.org/message-id/flat/79692bf9-17d3-41e6-b9c9-fc8c3944222a@eisentraut.org
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ab2d51c21ce..ef56226156a 100644 --- a/configure.ac +++ b/configure.ac @@ -1795,7 +1795,7 @@ AC_CHECK_DECLS(posix_fadvise, [], [], [#include <fcntl.h>]) ]) # fi AC_CHECK_DECLS(fdatasync, [], [], [#include <unistd.h>]) -AC_CHECK_DECLS([strlcat, strlcpy, strnlen]) +AC_CHECK_DECLS([strlcat, strlcpy, strnlen, strsep]) # We can't use AC_CHECK_FUNCS to detect these functions, because it # won't handle deployment target restrictions on macOS @@ -1814,6 +1814,7 @@ AC_REPLACE_FUNCS(m4_normalize([ strlcat strlcpy strnlen + strsep ])) AC_REPLACE_FUNCS(pthread_barrier_wait) |