Skip to content

Commit

Permalink
Merge pull request rust-lang#3775 from nyurik/disable-qnx70-regex
Browse files Browse the repository at this point in the history
Disable `libregex` for QNX 7.0
  • Loading branch information
joshtriplett authored Jul 31, 2024
2 parents 5588db9 + aea287e commit 59890b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/nto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2865,9 +2865,9 @@ safe_f! {

// Network related functions are provided by libsocket and regex
// functions are provided by libregex.
// In QNX <=7.0, libregex functions were included in libc itself.
#[link(name = "socket")]
#[link(name = "regex")]

#[cfg_attr(not(target_env = "nto70"), link(name = "regex"))]
extern "C" {
pub fn sem_destroy(sem: *mut sem_t) -> ::c_int;
pub fn sem_init(sem: *mut sem_t, pshared: ::c_int, value: ::c_uint) -> ::c_int;
Expand Down

0 comments on commit 59890b5

Please sign in to comment.