Skip to content

Commit 6a23a61

Browse files
committed
virnetdevbridge: Include virnetlink.h more often
The whole point of virnetlink.h is that it hides away the build time dependency on netlink. It wraps netlink functions in our functions which then have a stub implementation in case netlink support was disabled. Though, netlink is still Linux specific, so keep it in the '#ifdef __linux__` block to cause a compilation error should anybody try to use any of the wrapped functions on non-Linux. Signed-off-by: Michal Privoznik <[email protected]> Reviewed-by: Peter Krempa <[email protected]>
1 parent 54fbcc6 commit 6a23a61

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/util/virnetdevbridge.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@
3030
#endif
3131

3232
#ifdef __linux__
33-
# if defined(WITH_LIBNL)
34-
# include "virnetlink.h"
35-
# endif
33+
# include "virnetlink.h"
3634
# include <linux/sockios.h>
3735
# include <linux/param.h> /* HZ */
3836
# include <linux/in6.h>

0 commit comments

Comments
 (0)