mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user