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.
  • Loading branch information
nyurik committed Jul 31, 2024
1 parent 5588db9 commit 0f4d2f7
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.
// 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 0f4d2f7

Please sign in to comment.