{"author":"Viktor Szakats","author_email":"commit@vsz.me","author_time":1738765931,"commit_time":1738769343,"committer":"Viktor Szakats","committer_email":"commit@vsz.me","hash":"6fc703904b2ed5e320abd66c9ef1efc894578fe9","message":"lib: include necessary headers for `inet_ntop`/`inet_pton`\n\nInclude `netinet/in.h` for FreeBSD/OpenBSD. Also include `sys/socket.h`\njust in case, based on earlier code in `tests/libtest/lib1960.c`.\n\nAlso:\n- document these in `CMakeLists.txt`.\n- add a CI job testing FreeBSD with no unity and no test bundles.\n  (without running tests to keep it fast)\n\nFreeBSD (autotools):\n```\n../../../tests/libtest/lib1960.c:66:22: error: variable has incomplete type 'struct sockaddr_in'\n   66 |   struct sockaddr_in serv_addr;\n      |                      ^\n../../../tests/libtest/lib1960.c:66:10: note: forward declaration of 'struct sockaddr_in'\n   66 |   struct sockaddr_in serv_addr;\n      |          ^\n```\nRef: https://github.com/curl/curl/actions/runs/13159721509/job/36725114118?pr=16188#step:3:5289\n\nOpenBSD (cmake):\n```\n/home/runner/work/curl/curl/tests/libtest/lib1960.c:66:22: error: variable has incomplete type 'struct sockaddr_in'\n  struct sockaddr_in serv_addr;\n                     ^\n/home/runner/work/curl/curl/tests/libtest/lib1960.c:66:10: note: forward declaration of 'struct sockaddr_in'\n  struct sockaddr_in serv_addr;\n         ^\n1 error generated.\n```\nRef: https://github.com/curl/curl/actions/runs/13159721509/job/36725102004?pr=16188#step:3:2166\n\nReported-by: CueXXIII on Github\nFixes #16184\nFollow-up to a3585c9576abccddbd27200058912cef900c3c0f #15543\nCloses #16188\n","parents":["14f26f5ee78204c15bf906f3cf7480308e2feb28"],"tree_hash":"458fd91305eca9edc4deaba9e22f16d5f9d4dbd2"}