Skip to content

Commit 96a96a5

Browse files
committed
Disable libregex for QNX 7.0
`libregex` did not exist until QNX 7.1. Before that, the regex functions were part of the libc.
1 parent 043e8a3 commit 96a96a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unix/nto/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2865,9 +2865,9 @@ safe_f! {
28652865

28662866
// Network related functions are provided by libsocket and regex
28672867
// functions are provided by libregex.
2868+
// Note that in QNX <=7.0, libregex functions were included it in libc itself.
28682869
#[link(name = "socket")]
2869-
#[link(name = "regex")]
2870-
2870+
#[cfg_attr(not(target_env = "nto70"), link(name = "regex"))]
28712871
extern "C" {
28722872
pub fn sem_destroy(sem: *mut sem_t) -> ::c_int;
28732873
pub fn sem_init(sem: *mut sem_t, pshared: ::c_int, value: ::c_uint) -> ::c_int;

0 commit comments

Comments
 (0)