mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
portability: use net/if.h instead of linux/if.h
This commit is contained in:
parent
f753dd62f9
commit
0f81bdb2f7
@ -49,7 +49,7 @@ VIR_ENUM_IMPL(virNetDevMacVLanMode, VIR_NETDEV_MACVLAN_MODE_LAST,
|
|||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
# include <sys/ioctl.h>
|
# include <sys/ioctl.h>
|
||||||
|
|
||||||
# include <linux/if.h>
|
# include <net/if.h>
|
||||||
# include <linux/if_tun.h>
|
# include <linux/if_tun.h>
|
||||||
|
|
||||||
/* Older kernels lacked this enum value. */
|
/* Older kernels lacked this enum value. */
|
||||||
|
@ -49,7 +49,7 @@ VIR_ENUM_IMPL(virNetDevVPortProfileOp, VIR_NETDEV_VPORT_PROFILE_OP_LAST,
|
|||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
# include <sys/ioctl.h>
|
# include <sys/ioctl.h>
|
||||||
|
|
||||||
# include <linux/if.h>
|
# include <net/if.h>
|
||||||
# include <linux/if_tun.h>
|
# include <linux/if_tun.h>
|
||||||
|
|
||||||
# include "virnetlink.h"
|
# include "virnetlink.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user