Re: [PATCH 1/5] configure: use correct if defined



On Mon, 2011-11-21 at 08:20 -0500, Weiping Pan wrote:
> I only install libnl-3.2.3 on my system, and I met an error:
> 
> In file included from ../../src/nm-netlink-monitor.h:93:0,
> from nm-vpn-connection.c:48:
> ../../src/nm-netlink-compat.h:210:5: error: "HAVE_LIBNL1" is not defined
> ../../src/nm-netlink-compat.h:210:20: error: "HAVE_LIBNL2" is not defined
> make[5]: *** [libvpn_manager_la-nm-vpn-connection.lo] Error 1

Pushed this one to master, thanks.

Dan

> Signed-off-by: Weiping Pan <wpan 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..2ed99d5 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)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]