add hurd support
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 29 Aug 2023 19:55:29 +0000 (19:55 +0000)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Wed, 19 Jun 2024 05:51:49 +0000 (07:51 +0200)
Forwarded: https://github.com/nagisa/rust_libloading/pull/129

Gbp-Pq: Topic vendor
Gbp-Pq: Name u-hurd-libloading-0.7.4.patch

vendor/libloading-0.7.4/src/os/unix/consts.rs

index ea7a6a102da8953333fcfab4875317cda0a55a37..5794ade951d3548b28fd3b4dd9c0a9b691a34ce3 100644 (file)
@@ -82,6 +82,7 @@ mod posix {
 
             target_os = "fuchsia",
             target_os = "redox",
+            target_os = "hurd",
         ))] {
             pub(super) const RTLD_LAZY: c_int = 1;
         } else {
@@ -115,6 +116,7 @@ mod posix {
 
             target_os = "fuchsia",
             target_os = "redox",
+            target_os = "hurd",
         ))] {
             pub(super) const RTLD_NOW: c_int = 2;
         } else if #[cfg(all(target_os = "android",target_pointer_width = "32"))] {
@@ -162,6 +164,7 @@ mod posix {
 
             target_os = "fuchsia",
             target_os = "redox",
+            target_os = "hurd",
         ))] {
             pub(super) const RTLD_GLOBAL: c_int = 0x100;
         } else {
@@ -200,6 +203,7 @@ mod posix {
 
             target_os = "fuchsia",
             target_os = "redox",
+            target_os = "hurd",
         ))] {
             pub(super) const RTLD_LOCAL: c_int = 0;
         } else {