smadaminov / ovs-dpdk-meson-issues

VMware Summer 2021
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

netlink-socket.h is only for hosts that support Netlink sockets #19

Open williamtu opened 3 years ago

williamtu commented 3 years ago

../lib/netlink-socket.h:204:2: error: #error "netlink-socket.h is only for hosts that support Netlink sockets" 204 | #error "netlink-socket.h is only for hosts that support Netlink sockets" | ^~~~~ ../lib/netlink-socket.c: In function 'nl_sock_create': ../lib/netlink-socket.c:121:24: error: storage size of 'local' isn't known 121 | struct sockaddr_nl local, remote; | ^~~~~ ../lib/netlink-socket.c:121:31: error: storage size of 'remote' isn't known 121 | struct sockaddr_nl local, remote; | ^~ ../lib/netlink-socket.c:132:24: error: '_XOPEN_IOV_MAX' undeclared (first use in this function) 132 | if (max_iovs < _XOPEN_IOV_MAX) {

williamtu commented 3 years ago

need to

ifndef HAVE_NETLINK

ifndef _WIN32

error "netlink-socket.h is only for hosts that support Netlink sockets"

endif

endif