Skip to content

Commit 527b63e

Browse files
committed
stdbuild conditional change
Building with cargo doesn't necessarily imply this isn't a `stdbuild` libc. This logic is more consistent with the rest of the repo.
1 parent 400a7df commit 527b63e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ pub const POLLNVAL: ::c_short = 0x20;
132132
pub const IF_NAMESIZE: ::size_t = 16;
133133

134134
cfg_if! {
135-
if #[cfg(feature = "default")] {
135+
if #[cfg(not(stdbuild))] {
136136
// cargo build, don't pull in anything extra as the libstd dep
137137
// already pulls in all libs.
138138
} else if #[cfg(target_env = "musl")] {

0 commit comments

Comments
 (0)