add hurd support
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 29 Aug 2023 20:03:20 +0000 (20:03 +0000)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Thu, 27 Jun 2024 12:30:53 +0000 (14:30 +0200)
Forwarded: https://github.com/rust-lang/socket2/pull/474

Gbp-Pq: Topic vendor
Gbp-Pq: Name u-hurd-socket2.patch

vendor/socket2-0.5.6/src/sockaddr.rs
vendor/socket2-0.5.6/src/sys/unix.rs

index 6df22fdcab45e77aec4b5d11a5efbb1b012ce023..185f421d024491bc8ca68671ff1f121bc31f3ad7 100644 (file)
@@ -290,6 +290,7 @@ impl From<SocketAddrV4> for SockAddr {
             target_os = "freebsd",
             target_os = "haiku",
             target_os = "hermit",
+            target_os = "hurd",
             target_os = "ios",
             target_os = "macos",
             target_os = "netbsd",
@@ -333,6 +334,7 @@ impl From<SocketAddrV6> for SockAddr {
             target_os = "freebsd",
             target_os = "haiku",
             target_os = "hermit",
+            target_os = "hurd",
             target_os = "ios",
             target_os = "macos",
             target_os = "netbsd",
index 805b6d55945c5321fbb8a23f473b1a6b3d9e2e04..1683ff278451dcf084ba582585053f3243ce34da 100644 (file)
@@ -138,6 +138,7 @@ pub(crate) use libc::IP_HDRINCL;
     target_os = "aix",
     target_os = "dragonfly",
     target_os = "fuchsia",
+    target_os = "hurd",
     target_os = "illumos",
     target_os = "netbsd",
     target_os = "openbsd",