Skip to content

Commit 0f4fa73

Browse files
authored
Merge pull request #3818 from tgross35/main-qnx-libregex
[main] Disable libregex for QNX 7.0 #3775
2 parents 728215e + 78b639c commit 0f4fa73

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
@@ -2864,9 +2864,9 @@ safe_f! {
28642864

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

0 commit comments

Comments
 (0)