netlink: Fix #if check if HAVE_LIBNL1 and HAVE_LIBNL2 are not defined
Need to use #if defined HAVE_LIBNL1 instead of #if HAVE_LIBNL1. Signed-off-by: Thomas Graf <tgraf@redhat.com>
This commit is contained in:

committed by
Dan Williams

parent
ae22fffe23
commit
e654bb8d1d
@@ -219,7 +219,7 @@ static inline int __genl_ctrl_alloc_cache(struct nl_sock *h, struct nl_cache **c
|
|||||||
#endif /* HAVE_LIBNL1 */
|
#endif /* HAVE_LIBNL1 */
|
||||||
|
|
||||||
/* Stuff that only libnl3 has */
|
/* Stuff that only libnl3 has */
|
||||||
#if HAVE_LIBNL1 || HAVE_LIBNL2
|
#if (defined HAVE_LIBNL1 || defined HAVE_LIBNL2)
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
rtnl_link_bond_add (struct nl_sock *h, const char *name, void *data)
|
rtnl_link_bond_add (struct nl_sock *h, const char *name, void *data)
|
||||||
|
Reference in New Issue
Block a user