Skip to content

Commit 14fb973

Browse files
authored
fix: the build with feature 'socket' on macOS (#2514)
1 parent 9c0bdac commit 14fb973

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sys/socket/sockopt.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,12 +1697,14 @@ impl<'a> Set<'a, OsString> for SetOsString<'a> {
16971697

16981698
/// Getter for a `CString` value.
16991699
#[cfg(apple_targets)]
1700+
#[cfg(feature = "net")]
17001701
struct GetCString<T: AsMut<[u8]>> {
17011702
len: socklen_t,
17021703
val: MaybeUninit<T>,
17031704
}
17041705

17051706
#[cfg(apple_targets)]
1707+
#[cfg(feature = "net")]
17061708
impl<T: AsMut<[u8]>> Get<CString> for GetCString<T> {
17071709
fn uninit() -> Self {
17081710
GetCString {

0 commit comments

Comments
 (0)