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