Care around cfg to not show wrong values in docs

This commit is contained in:
Simonas Kazlauskas
2020-08-24 04:40:03 +03:00
parent 735a20691d
commit f1053ec0c0
+2 -2
View File
@@ -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;