head 1.2; access; symbols; locks; strict; comment @// @; 1.2 date 2026.07.18.18.39.57; author gdt; state Exp; branches; next 1.1; commitid LBzbqv8KTfyQmaOG; 1.1 date 2026.07.18.18.28.15; author gdt; state Exp; branches; next ; commitid OSgUXB1emqdhiaOG; desc @@ 1.2 log @net/libtorrent: Add upstream URL for sys/socket.h bug @ text @$NetBSD: patch-src_torrent_system_system.cc,v 1.1 2026/07/18 18:28:15 gdt Exp $ system.cc uses AF_INET. POSIX says that constants are defined in sys/socket: https://pubs.opengroup.org/onlinepubs/9799919799/functions/socket.html https://github.com/rakshasa/rtorrent/issues/1892 --- src/torrent/system/system.cc.orig 2026-07-18 18:18:35.886055891 +0000 +++ src/torrent/system/system.cc @@@@ -4,6 +4,8 @@@@ #include #include +#include + #include "torrent/exceptions.h" #include "torrent/system/callbacks.h" #include "torrent/system/thread.h" @ 1.1 log @net/librtorrent: Remediate non-POSIXy socket use The code used AF_INET without including sys/socket.h. Add a patch to include it. Resolves build failure on NetBSD 10 (which is a regression from 0.16.17). @ text @d1 1 a1 1 $NetBSD$ d7 1 a7 1 Not yet reported upstream. @