Skip to content

Commit

Permalink
Add linux and freebsd restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
Fensteer committed Nov 27, 2018
1 parent 7e2f5f3 commit a4c162a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sys/socket/sockopt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use std::ffi::{CStr, CString};

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

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

0 comments on commit a4c162a

Please sign in to comment.