Merge pull request #1861 from ajones-rvbd/ajones-for-upstream

zebra/if_netlink: compile under musl-libc
This commit is contained in:
Donald Sharp 2018-03-10 07:05:14 -05:00 committed by GitHub
commit b82aab8c86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,7 @@
*/
#define _LINUX_IN6_H
#include <netinet/if_ether.h>
#include <linux/if_bridge.h>
#include <linux/if_link.h>
#include <net/if_arp.h>
@ -362,7 +363,7 @@ static int get_iflink_speed(struct interface *interface)
/* initialize ethtool interface */
memset(&ecmd, 0, sizeof(ecmd));
ecmd.cmd = ETHTOOL_GSET; /* ETHTOOL_GLINK */
ifdata.ifr_data = (__caddr_t)&ecmd;
ifdata.ifr_data = (caddr_t)&ecmd;
/* use ioctl to get IP address of an interface */
if (zserv_privs.change(ZPRIVS_RAISE))