From e654bb8d1de85c8a3422ed80630696b08a04c520 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Wed, 9 Nov 2011 11:22:38 +0100 Subject: [PATCH] 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 --- src/nm-netlink-compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-netlink-compat.h b/src/nm-netlink-compat.h index ecc21c3d49..86a1fe7241 100644 --- a/src/nm-netlink-compat.h +++ b/src/nm-netlink-compat.h @@ -219,7 +219,7 @@ static inline int __genl_ctrl_alloc_cache(struct nl_sock *h, struct nl_cache **c #endif /* HAVE_LIBNL1 */ /* Stuff that only libnl3 has */ -#if HAVE_LIBNL1 || HAVE_LIBNL2 +#if (defined HAVE_LIBNL1 || defined HAVE_LIBNL2) static inline int rtnl_link_bond_add (struct nl_sock *h, const char *name, void *data)