[PATCH 1/3] netlink-compat: Fix #if check if HAVE_LIBNL1 and HAVE_LIBNL2 are not defined
- From: Thomas Graf <tgraf redhat com>
- To: networkmanager-list gnome org
- Cc: Thomas Graf <tgraf redhat com>
- Subject: [PATCH 1/3] netlink-compat: Fix #if check if HAVE_LIBNL1 and HAVE_LIBNL2 are not defined
- Date: Wed, 9 Nov 2011 11:22:38 +0100
Need to use #if defined HAVE_LIBNL1 instead of #if HAVE_LIBNL1.
Signed-off-by: Thomas Graf <tgraf redhat com>
---
src/nm-netlink-compat.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/nm-netlink-compat.h b/src/nm-netlink-compat.h
index 5038851..404a85f 100644
--- a/src/nm-netlink-compat.h
+++ b/src/nm-netlink-compat.h
@@ -207,7 +207,7 @@ __nl_cache_include (struct nl_cache *cache, struct nl_object *obj, change_func_t
#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)
--
1.7.6.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]