[libvirt] [PATCH 1/1] support libnl-3 (v2)

2012-05-03 Thread Serge Hallyn
configure.ac+Makefile.am: support libnl-3 as well as libnl-1 src/util/virnetlink.c: support libnl3 api. To minimize impact on code flow with #ifdefs as requested by Stefan Berger, do some #defines at the top. Unfortunately libnl3 moves netlink/msg.h to /usr/include/libnl3/netlink/msg.h, so the

Re: [libvirt] [PATCH 1/1] support libnl-3 (v2)

2012-05-03 Thread Stefan Berger
On 05/03/2012 12:10 PM, Serge Hallyn wrote: configure.ac+Makefile.am: support libnl-3 as well as libnl-1 src/util/virnetlink.c: support libnl3 api. To minimize impact on code flow with #ifdefs as requested by Stefan Berger, do some #defines at the top. Unfortunately libnl3 moves netlink/msg.h

Re: [libvirt] [PATCH 1/1] support libnl-3 (v2)

2012-05-03 Thread Eric Blake
On 05/03/2012 10:10 AM, Serge Hallyn wrote: configure.ac+Makefile.am: support libnl-3 as well as libnl-1 src/util/virnetlink.c: support libnl3 api. To minimize impact on code flow with #ifdefs as requested by Stefan Berger, do some #defines at the top. Unfortunately libnl3 moves

Re: [libvirt] [PATCH 1/1] support libnl-3 (v2)

2012-05-03 Thread Eric Blake
On 05/03/2012 11:55 AM, Stefan Berger wrote: +#ifdef HAVE_LIBNL1 +#define nl_alloc nl_handle_alloc +#define nl_free nl_handle_destroy +typedef struct nl_handle nlhandle_t; +#else +#define nl_alloc nl_socket_alloc +#define nl_free nl_socket_free +typedef struct nl_sock nlhandle_t; +#endif

Re: [libvirt] [PATCH 1/1] support libnl-3 (v2)

2012-05-03 Thread Serge Hallyn
Quoting Eric Blake (ebl...@redhat.com): On 05/03/2012 11:55 AM, Stefan Berger wrote: +#ifdef HAVE_LIBNL1 +#define nl_alloc nl_handle_alloc +#define nl_free nl_handle_destroy +typedef struct nl_handle nlhandle_t; +#else +#define nl_alloc nl_socket_alloc +#define nl_free