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

Arend van Spriel arend at broadcom.com
Sat Nov 2 17:27:27 EDT 2013


On 11/02/13 17:35, Jeroen Roovers wrote:
> 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.

At line 13 in python/netlink/capi.i it has: #includes "utils.h"

This file has all the necessary list_head definitions as far as I can 
tell. No build issues here.

Regards,
Arend




More information about the libnl mailing list