From a70a3b7d4b88f7665f0dfa8326460c09275dc987 Mon Sep 17 00:00:00 2001 From: kpcyrd <git@rxv.cc> Date: Sat, 28 Apr 2018 03:17:45 +0200 Subject: [PATCH] OpenBSD: rename IFF_NOTRAILERS to IFF_STATICARP --- CHANGELOG.md | 1 + src/net/if_.rs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e146c48395..59bc4b6d54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). `request_code_write`, and `request_code_readwrite` respectively. These have also now been exposed in the documentation. ([#833](https://github.com/nix-rust/nix/pull/833)) +- On OpenBSD, `IFF_NOTRAILERS` has been renamed to `IFF_STATICARP`, this breaks OpenBSD < 6.3. ### Fixed - Properly exposed 460800 and 921600 baud rates on NetBSD diff --git a/src/net/if_.rs b/src/net/if_.rs index 0da9016aff..0761aedbdb 100644 --- a/src/net/if_.rs +++ b/src/net/if_.rs @@ -44,7 +44,6 @@ libc_bitflags!( target_os = "linux", target_os = "macos", target_os = "netbsd", - target_os = "openbsd", target_os = "solaris"))] IFF_NOTRAILERS; /// Interface manages own routes. @@ -186,7 +185,7 @@ libc_bitflags!( #[cfg(any(target_os = "solaris"))] IFF_DEPRECATED; /// Static ARP. - #[cfg(any(target_os = "dragonfly", target_os = "freebsd"))] + #[cfg(any(target_os = "dragonfly", target_os = "openbsd", target_os = "freebsd"))] IFF_STATICARP; /// Address from stateless addrconf. #[cfg(any(target_os = "solaris"))]