From 6916b1611122a73fb3316909e8ab0b3e193d6475 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Nov 2026 10:47:47 +0000 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap --- ssh/cmake/PatchLibssh.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ssh/cmake/PatchLibssh.cmake b/ssh/cmake/PatchLibssh.cmake index c519b33..b429f9b 100644 --- a/ssh/cmake/PatchLibssh.cmake +++ b/ssh/cmake/PatchLibssh.cmake @@ -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 */ +")