We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 728215e + 78b639c commit 0f4fa73Copy full SHA for 0f4fa73
src/unix/nto/mod.rs
@@ -2864,9 +2864,9 @@ safe_f! {
2864
2865
// Network related functions are provided by libsocket and regex
2866
// functions are provided by libregex.
2867
+// In QNX <=7.0, libregex functions were included in libc itself.
2868
#[link(name = "socket")]
-#[link(name = "regex")]
2869
-
+#[cfg_attr(not(target_env = "nto70"), link(name = "regex"))]
2870
extern "C" {
2871
pub fn sem_destroy(sem: *mut sem_t) -> ::c_int;
2872
pub fn sem_init(sem: *mut sem_t, pshared: ::c_int, value: ::c_uint) -> ::c_int;
0 commit comments