diff options
author | Lance Richardson <lrichard@redhat.com> | 2016-03-15 11:52:58 -0400 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-03-22 18:42:58 -0700 |
commit | 97d0619c1174fe5bdc9cd40d6a8f2a2ffe3ba6ed (patch) | |
tree | 9e737f5eac19b93df72310afe9a407c897ebd62d /lib/netdev-bsd.c | |
parent | 8be8c95e8d0722607012756b8a711e93d9e4a3ab (diff) | |
download | openvswitch-97d0619c1174fe5bdc9cd40d6a8f2a2ffe3ba6ed.tar.gz |
osx: handle differences between OS X and other BSDs
Conditional compilation to account for:
- OS X does not implement RTM_IFANNOUNCE.
- OS X does not implement tap netdeivces.
- OS X does not implement RT_ROUNDUP().
Signed-off-by: Lance Richardson <lrichard@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib/netdev-bsd.c')
-rw-r--r-- | lib/netdev-bsd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c index 273ec8e3f..3b0ad3e53 100644 --- a/lib/netdev-bsd.c +++ b/lib/netdev-bsd.c @@ -15,6 +15,7 @@ * limitations under the License. */ +#if !defined(__MACH__) #include <config.h> #include "netdev-provider.h" @@ -1826,3 +1827,4 @@ af_link_ioctl(unsigned long command, const void *arg) : 0); } #endif +#endif /* !defined(__MACH__) */ |