[PATCH 2/8] python: rework netlink callback handling

Jeroen Roovers jer at gentoo.org
Sat Nov 2 12:35:39 EDT 2013


On Fri, 1 Nov 2013 18:43:11 +0100
"Arend van Spriel" <arend at broadcom.com> wrote:
> >>> +LIST_HEAD(callback_list);
> >>
> >> Where is LIST_HEAD defined? There is an NL_LIST_HEAD in
> >> include/netlink/list.h and glibc defines an (incompatible)
> >> implementation in <sys/queue.h>.
> >
> > I was blissfully unaware and Thomas probably missed that. I added
> > python/netlink/utils.h holding those definitions.
> 
> So actually are surprised you are having build issues as capi.i
> includes that file.

Yes, it includes a header file that defines NL_LIST_HEAD. It does not
include a header file that defines LIST_HEAD, which is what you're
using here.


Regards,
     jer



More information about the libnl mailing list