u-hurd-socket2
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Wed, 12 Jun 2024 15:33:10 +0000 (17:33 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Wed, 12 Jun 2024 15:33:10 +0000 (17:33 +0200)
https://github.com/rust-lang/socket2/pull/474

commit c19d481701f01f77cf8346fc0f6e69886e44b097
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Tue Aug 29 20:03:20 2023 +0000

    Add GNU/Hurd support

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

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

index 9ce638e9aecbbd59b10691d5df7c0a3bee46e63f..649a6dc90c7300e4b93d1999f436ffba3b008903 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",
@@ -270,6 +271,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 69d0478dd2aedb5f72aa52b4be373e7464e054c7..eedcff0fa08a8c8fc573038dfa011bbf795fd24a 100644 (file)
@@ -1223,6 +1223,7 @@ impl Socket {
     #[cfg(not(any(
         target_os = "dragonfly",
         target_os = "haiku",
+        target_os = "hurd",
         target_os = "netbsd",
         target_os = "openbsd",
         target_os = "redox",
@@ -1258,6 +1259,7 @@ impl Socket {
     #[cfg(not(any(
         target_os = "dragonfly",
         target_os = "haiku",
+        target_os = "hurd",
         target_os = "netbsd",
         target_os = "openbsd",
         target_os = "redox",
@@ -1432,6 +1434,7 @@ impl Socket {
     #[cfg(not(any(
         target_os = "dragonfly",
         target_os = "fuchsia",
+        target_os = "hurd",
         target_os = "illumos",
         target_os = "netbsd",
         target_os = "openbsd",
@@ -1461,6 +1464,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 74da8cc208c95fbf199dacf9330b62788fbfb7fc..9d3d6cd59f2bad228718c013c6d9fd363e25a652 100644 (file)
@@ -82,6 +82,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",
@@ -112,6 +113,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",
@@ -226,6 +228,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",