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:
Thomas Graf
2011-11-09 11:22:38 +01:00
committed by Dan Williams
parent ae22fffe23
commit e654bb8d1d

View File

@@ -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)