Skip to content

Commit

Permalink
add AF_UNSPEC
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Aug 14, 2017
1 parent 517ba4d commit 8ee1c65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ mod unix {
pub type sockaddr_in6 = libc::sockaddr_in6;
pub type socklen_t = libc::socklen_t;

pub const AF_UNSPEC: i32 = libc::AF_UNSPEC;
pub const AF_INET: i32 = libc::AF_INET;
pub const AF_INET6: i32 = libc::AF_INET6;
}
Expand All @@ -56,6 +57,7 @@ mod windows {
pub type sockaddr_in6 = winapi::ws2ipdef::sockaddr_in6;
pub type socklen_t = winapi::socklen_t;

pub const AF_UNSPEC: i32 = winapi::ws2def::AF_UNSPEC;
pub const AF_INET: i32 = winapi::ws2def::AF_INET;
pub const AF_INET6: i32 = winapi::ws2def::AF_INET6;
}
Expand Down

0 comments on commit 8ee1c65

Please sign in to comment.