diff --git a/src/os/unix/consts.rs b/src/os/unix/consts.rs index 823155e..2c18f95 100644 --- a/src/os/unix/consts.rs +++ b/src/os/unix/consts.rs @@ -43,7 +43,7 @@ pub const RTLD_GLOBAL: c_int = posix::RTLD_GLOBAL; /// any other executable object file. This mode of operation is most appropriate for e.g. plugins. pub const RTLD_LOCAL: c_int = posix::RTLD_LOCAL; -#[cfg(docsrs)] +#[cfg(all(docsrs, not(unix)))] mod posix { use super::c_int; pub(super) const RTLD_LAZY: c_int = !0; @@ -52,7 +52,7 @@ mod posix { pub(super) const RTLD_LOCAL: c_int = !0; } -#[cfg(not(docsrs))] +#[cfg(any(not(docsrs), unix))] mod posix { extern crate cfg_if; use self::cfg_if::cfg_if;