In FreeBSD's ifreq, ifr_ifru.ifru_flags is an array of two chars, while Linux

defines it as a short.  Change that to an array of one short so that FreeBSD's
ifr_flags macro will work (it evaluates to ifr_ifru.ifru_flags[0]).
This commit is contained in:
Dag-Erling Smørgrav 2001-10-15 20:06:34 +00:00
parent 211f625a91
commit 268aeb1ed3
2 changed files with 2 additions and 2 deletions

View File

@ -482,7 +482,7 @@ struct l_ifreq {
struct l_sockaddr ifru_broadaddr;
struct l_sockaddr ifru_netmask;
struct l_sockaddr ifru_hwaddr;
l_short ifru_flags;
l_short ifru_flags[1];
l_int ifru_metric;
l_int ifru_mtu;
struct l_ifmap ifru_map;

View File

@ -641,7 +641,7 @@ struct l_ifreq {
struct l_sockaddr ifru_broadaddr;
struct l_sockaddr ifru_netmask;
struct l_sockaddr ifru_hwaddr;
l_short ifru_flags;
l_short ifru_flags[1];
l_int ifru_metric;
l_int ifru_mtu;
struct l_ifmap ifru_map;