Skip to content

Commit 1de6189

Browse files
committed
Care around cfg to not show wrong values in docs
1 parent 21c7cdb commit 1de6189

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/os/unix/consts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub const RTLD_GLOBAL: c_int = posix::RTLD_GLOBAL;
4343
/// any other executable object file. This mode of operation is most appropriate for e.g. plugins.
4444
pub const RTLD_LOCAL: c_int = posix::RTLD_LOCAL;
4545

46-
#[cfg(docsrs)]
46+
#[cfg(all(docsrs, not(unix)))]
4747
mod posix {
4848
use super::c_int;
4949
pub(super) const RTLD_LAZY: c_int = !0;
@@ -52,7 +52,7 @@ mod posix {
5252
pub(super) const RTLD_LOCAL: c_int = !0;
5353
}
5454

55-
#[cfg(not(docsrs))]
55+
#[cfg(any(not(docsrs), unix))]
5656
mod posix {
5757
extern crate cfg_if;
5858
use self::cfg_if::cfg_if;

0 commit comments

Comments
 (0)