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>
Wed, 19 Jun 2024 05:51:49 +0000 (07:51 +0200)
Forwarded: https://github.com/rust-lang/socket2/pull/474

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

vendor/socket2/src/sockaddr.rs
vendor/socket2/src/socket.rs
vendor/socket2/src/sys/unix.rs

index e72101872f68e1fe7fd69d8b26855ae041366584..682ec899d8f6b49f1f84462b618c4c680e61505e 100644 (file)
@@ -231,6 +231,7 @@ impl From<SocketAddrV4> for SockAddr {
                 target_os = "dragonfly",
                 target_os = "freebsd",
                 target_os = "haiku",
+                target_os = "hurd",
                 target_os = "ios",
                 target_os = "macos",
                 target_os = "netbsd",
@@ -275,6 +276,7 @@ impl From<SocketAddrV6> for SockAddr {
                 target_os = "dragonfly",
                 target_os = "freebsd",
                 target_os = "haiku",
+                target_os = "hurd",
                 target_os = "ios",
                 target_os = "macos",
                 target_os = "netbsd",
index 90649d9d3e53d1ce9669e251d9ee09eb5f47efa8..45fe1e3d6f1f113dce0778fde2f5b64d8c2a607e 100644 (file)
@@ -1235,6 +1235,7 @@ impl Socket {
     #[cfg(not(any(
         target_os = "dragonfly",
         target_os = "haiku",
+        target_os = "hurd",
         target_os = "netbsd",
         target_os = "openbsd",
         target_os = "redox",
@@ -1272,6 +1273,7 @@ impl Socket {
     #[cfg(not(any(
         target_os = "dragonfly",
         target_os = "haiku",
+        target_os = "hurd",
         target_os = "netbsd",
         target_os = "openbsd",
         target_os = "redox",
@@ -1448,6 +1450,7 @@ impl Socket {
     #[cfg(not(any(
         target_os = "dragonfly",
         target_os = "fuchsia",
+        target_os = "hurd",
         target_os = "illumos",
         target_os = "netbsd",
         target_os = "openbsd",
@@ -1479,6 +1482,7 @@ impl Socket {
     #[cfg(not(any(
         target_os = "dragonfly",
         target_os = "fuchsia",
+        target_os = "hurd",
         target_os = "illumos",
         target_os = "netbsd",
         target_os = "openbsd",
index ec7c3e2e45f3cb9fe3aadae17568f5f9ac1137d2..1b89e3731b50de1f59c48c412bf3f5aed7b46321 100644 (file)
@@ -84,6 +84,7 @@ pub(crate) use libc::IP_HDRINCL;
 #[cfg(not(any(
     target_os = "dragonfly",
     target_os = "fuchsia",
+    target_os = "hurd",
     target_os = "illumos",
     target_os = "netbsd",
     target_os = "openbsd",
@@ -116,6 +117,7 @@ pub(crate) use libc::{
 #[cfg(not(any(
     target_os = "dragonfly",
     target_os = "haiku",
+    target_os = "hurd",
     target_os = "netbsd",
     target_os = "openbsd",
     target_os = "redox",
@@ -233,6 +235,7 @@ type IovLen = usize;
     target_os = "freebsd",
     target_os = "fuchsia",
     target_os = "haiku",
+    target_os = "hurd",
     target_os = "illumos",
     target_os = "netbsd",
     target_os = "openbsd",