build: require POSIX strdup()

Stop detecting this function and drop the local fallback.

Let us know if this update is causing an issue.

Notes:
- on Windows `_strdup()` is required instead.
- `strdup()/_strdup()` were required before this patch to build one of
  the examples: `block_ip`.
- `strdup()/_strdup()` were required in 8.18.0 and earlier to build
  tests.

Closes #20505
This commit is contained in:
Viktor Szakats 2026-02-02 19:02:34 +01:00
parent 710d5a28fb
commit 0590753a3c
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
10 changed files with 0 additions and 120 deletions

View file

@ -4204,7 +4204,6 @@ if test "$curl_cv_native_windows" != "yes"; then
CURL_CHECK_FUNC_INET_PTON
CURL_CHECK_FUNC_STRCASECMP
CURL_CHECK_FUNC_STRCMPI
CURL_CHECK_FUNC_STRDUP
CURL_CHECK_FUNC_STRICMP
fi