We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21c7cdb commit 1de6189Copy full SHA for 1de6189
src/os/unix/consts.rs
@@ -43,7 +43,7 @@ pub const RTLD_GLOBAL: c_int = posix::RTLD_GLOBAL;
43
/// any other executable object file. This mode of operation is most appropriate for e.g. plugins.
44
pub const RTLD_LOCAL: c_int = posix::RTLD_LOCAL;
45
46
-#[cfg(docsrs)]
+#[cfg(all(docsrs, not(unix)))]
47
mod posix {
48
use super::c_int;
49
pub(super) const RTLD_LAZY: c_int = !0;
@@ -52,7 +52,7 @@ mod posix {
52
pub(super) const RTLD_LOCAL: c_int = !0;
53
}
54
55
-#[cfg(not(docsrs))]
+#[cfg(any(not(docsrs), unix))]
56
57
extern crate cfg_if;
58
use self::cfg_if::cfg_if;
0 commit comments