Keep if_nametoindex in libssh's ssh_is_ipaddr for Linux and macOS

The patch renamed both calls in misc.c; the second ssh_is_ipaddr is the
one for systems other than Windows, where dmodem_if_nametoindex was not
defined.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
This commit is contained in:
Claude committed 2026-11-20 10:47:47 +00:00
1 parent 579fc9a706
commit 6916b16111
1 file changed
+8
+8
View File
@@ -142,3 +142,11 @@ dmodem_patch(src/misc.c
dmodem_patch(src/misc.c
"rc = WSAStringToAddressA((LPSTR) "
"rc = dmodem_WSAStringToAddressA((LPSTR) ")
# (the other ssh_is_ipaddr, for systems other than Windows, keeps its own)
dmodem_patch(src/misc.c
"#else /* _WIN32 */
"
"#else /* _WIN32 */
#define dmodem_if_nametoindex if_nametoindex /* D-Modem */
")