)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"73964aefb797d5eb73401bc596ff29acfafd87ee","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"28e8cb45_0f6188a7","updated":"2026-05-17 10:47:15.000000000","message":"Thanks.\nI see value to move this code in a more generic helper, but let\u0027s keep it as a future improvement.","commit_id":"1de6fd351a7d3514c1fdb2c16a74d634ac260a8b"}],"src/jtag/drivers/jtag_vpi.c":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"38c3891fcd226830e6e0aba4c44251b07f707b07","unresolved":true,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"#include \u003cjtag/interface.h\u003e"},{"line_number":17,"context_line":"#ifdef HAVE_NETDB_H"},{"line_number":18,"context_line":"#include \u003cnetdb.h\u003e"},{"line_number":19,"context_line":"#endif"},{"line_number":20,"context_line":"#ifdef HAVE_ARPA_INET_H"},{"line_number":21,"context_line":"#include \u003carpa/inet.h\u003e"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"49e4f4b3_cf97ebbe","line":18,"updated":"2026-05-16 21:52:05.000000000","message":"The functions `getaddrinfo()` and `freeaddrinfo()` and the `struct addrinfo` are declared in `netdb.h`.\nHow can this patch work when this include is missing?\nI\u0027m looking for a libc that does not provide the include... no luck so far...\nChecked musl and newlib-cygwin\nOnly arm-none-eabi-nelib in Arch misses it, but that\u0027s a very limited lib for bare metal, no networking at all.\nI found this: https://www.gnu.org/software/gnulib/manual/html_node/netdb_002eh.html\n\nI\u0027m afraid that we need to encapsulate this code in some generic helper that use these functions when `netdb.h` is present, otherwise falls back to the old API.\nMaybe we should look for some other project, how they handle this\n\nhttps://github.com/curl/curl\nhas the files `lib/fake_addrinfo.c/h` and `lib/curl_addrinfo.c/h`, but the git history does not say are replacement for missing `netdb.h`. See https://github.com/curl/curl/pull/17134\n\nMaybe, simply the functions and the struct are defined in another include when `netdb.h` is missing?","commit_id":"1de6fd351a7d3514c1fdb2c16a74d634ac260a8b"},{"author":{"_account_id":1000853,"name":"zapb","display_name":"Marc Schink","email":"dev@zapb.de","username":"zapb"},"change_message_id":"dbc91e3c14468534658f3addc0c40e01f1f71459","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"#include \u003cjtag/interface.h\u003e"},{"line_number":17,"context_line":"#ifdef HAVE_NETDB_H"},{"line_number":18,"context_line":"#include \u003cnetdb.h\u003e"},{"line_number":19,"context_line":"#endif"},{"line_number":20,"context_line":"#ifdef HAVE_ARPA_INET_H"},{"line_number":21,"context_line":"#include \u003carpa/inet.h\u003e"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"7133267d_5627951c","line":18,"in_reply_to":"2b087bad_f3fc24f6","updated":"2026-05-20 19:30:15.000000000","message":"Yes, I used the `remote_bitbang.c` code as reference.\n\n\u003e I see value to move this code in a more generic helper, but let\u0027s keep it as a future improvement.\n\nAgreed, it\u0027s on my TODO list already.","commit_id":"1de6fd351a7d3514c1fdb2c16a74d634ac260a8b"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"73964aefb797d5eb73401bc596ff29acfafd87ee","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"#include \u003cjtag/interface.h\u003e"},{"line_number":17,"context_line":"#ifdef HAVE_NETDB_H"},{"line_number":18,"context_line":"#include \u003cnetdb.h\u003e"},{"line_number":19,"context_line":"#endif"},{"line_number":20,"context_line":"#ifdef HAVE_ARPA_INET_H"},{"line_number":21,"context_line":"#include \u003carpa/inet.h\u003e"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"2b087bad_f3fc24f6","line":18,"in_reply_to":"49e4f4b3_cf97ebbe","updated":"2026-05-17 10:47:15.000000000","message":"Mha!\nThese API are already in use in `remote_bitbang.c` since 2013 and part of OpenOCD v0.8.0 in 2014.\nNobody complained, so far, so I think we can proceed.\nSorry for the noise.","commit_id":"1de6fd351a7d3514c1fdb2c16a74d634ac260a8b"}]}
