Skip to content

Commit

Permalink
Disable libregex for QNX 7.0
Browse files Browse the repository at this point in the history
`libregex` did not exist until QNX 7.1. Before that, the regex functions were part of the libc.

(apply <rust-lang#3775> to `main`)
(cherry picked from commit 0f4d2f7)
  • Loading branch information
nyurik authored and tgross35 committed Aug 13, 2024
1 parent eba3aa8 commit 62bd84a
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 @@ -2864,9 +2864,9 @@ safe_f! {

// Network related functions are provided by libsocket and regex
// functions are provided by libregex.
// Note that in QNX <=7.0, libregex functions were included it 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 62bd84a

Please sign in to comment.