problem with netlink-kernel.h

Kahn, Gery geryk at ti.com
Mon Jan 3 02:27:40 EST 2011


Hi

There is header file netlink-kernel.h
It is , i understand, copy of header file from kernel.
The header file handlers.h includes the netlink-kernel.h
This demands to copy netlink-kernel.h while command `make install'

Now, there is situation while libc also has file netlink.h with definition
of the same structures. As a result, compiler complains about redefinition,
for example 'struct sockaddr_nl'.

Can the libnl use the kernel header from kernel source, without coping it?
Any other solution would be welcome :)

I found this problem while compiling wpa_supplicant.

Gery



More information about the libnl mailing list