diff --git a/CHANGELOG.md b/CHANGELOG.md index 55ea52833d..0e2c211673 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Added `futimens` and `utimesat` wrappers ([#944](https://github.com/nix-rust/nix/pull/944)) and a `utimes` wrapper ([#946](https://github.com/nix-rust/nix/pull/946)). - Added a `acct` wrapper module for enabling and disabling process accounting ([#952](https://github.com/nix-rust/nix/pull/952)) +- Added `AF_UNSPEC` wrapper to `AddressFamily` ([#948](https://github.com/nix-rust/nix/pull/948)) ### Changed - Increased required Rust version to 1.22.1/ diff --git a/src/sys/socket/addr.rs b/src/sys/socket/addr.rs index 93014f1cf0..ebd32c1f5d 100644 --- a/src/sys/socket/addr.rs +++ b/src/sys/socket/addr.rs @@ -209,6 +209,9 @@ pub enum AddressFamily { target_os = "netbsd", target_os = "openbsd"))] Natm = libc::AF_NATM, + /// Unspecified address family, (see [`getaddrinfo(3)`](http://man7.org/linux/man-pages/man3/getaddrinfo.3.html)) + #[cfg(any(target_os = "android", target_os = "linux"))] + Unspec = libc::AF_UNSPEC, } impl AddressFamily {