Skip to content

Commit

Permalink
Add GNU/Hurd support
Browse files Browse the repository at this point in the history
  • Loading branch information
sthibaul authored and nagisa committed Sep 30, 2023
1 parent 83b1037 commit 291100e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/os/unix/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ mod posix {
target_os = "fuchsia",
target_os = "redox",
target_os = "nto",
target_os = "hurd",
))] {
pub(super) const RTLD_LAZY: c_int = 1;
} else {
Expand Down Expand Up @@ -117,6 +118,7 @@ mod posix {
target_os = "fuchsia",
target_os = "redox",
target_os = "nto",
target_os = "hurd",
))] {
pub(super) const RTLD_NOW: c_int = 2;
} else if #[cfg(all(target_os = "android",target_pointer_width = "32"))] {
Expand Down Expand Up @@ -165,6 +167,7 @@ mod posix {
target_os = "fuchsia",
target_os = "redox",
target_os = "nto",
target_os = "hurd",
))] {
pub(super) const RTLD_GLOBAL: c_int = 0x100;
} else {
Expand Down Expand Up @@ -206,6 +209,7 @@ mod posix {

target_os = "fuchsia",
target_os = "redox",
target_os = "hurd",
))] {
pub(super) const RTLD_LOCAL: c_int = 0;
} else {
Expand Down

0 comments on commit 291100e

Please sign in to comment.