summaryrefslogtreecommitdiffstats
path: root/debian/patches/u-hurd-libloading-0.7.4.patch
blob: 3b4ce6ba9214c1e87a50565b1f25edbe780bd52e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
https://github.com/nagisa/rust_libloading/pull/129

commit 2e3104a30c4d14aa48871036b779f968a9472ff6
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Tue Aug 29 19:55:29 2023 +0000

    Add GNU/Hurd support

diff --git a/vendor/libloading-0.7.4/src/os/unix/consts.rs b/vendor/libloading-0.7.4/src/os/unix/consts.rs
index ea7a6a1..5794ade 100644
--- a/vendor/libloading-0.7.4/src/os/unix/consts.rs
+++ b/vendor/libloading-0.7.4/src/os/unix/consts.rs
@@ -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 {