Skip to content

Commit a4c162a

Browse files
committed
Add linux and freebsd restriction
1 parent 7e2f5f3 commit a4c162a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sys/socket/sockopt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use std::ffi::{CStr, CString};
1010

1111
// Constants
1212
// TCP_CA_NAME_MAX isn't defined in user space include files
13+
#[cfg(any(target_os = "freebsd", target_os = "linux"))]
1314
const TCP_CA_NAME_MAX: usize = 16;
1415

1516
/// Helper for implementing `SetSockOpt` for a given socket option. See

0 commit comments

Comments
 (0)