Fix libiproute build with kernel headers older than 2.6.17

Stefan Seyfried stefan.seyfried at googlemail.com
Mon Feb 21 16:45:49 UTC 2011


Hi,

the attached patch fixes the build if your kernel headers happen to be
older than 2.6.17, which is when IFLA_OPERSTATE was introduced.

Unfortunately, IFLA_OPERSTATE is not a define, so I can't check it with
#ifdef. However, IFF_DORMANT is a define and was introduced with the very
same commit, so we might be safe.

A comment explaining this situation is in place.

Have fun,

	Stefan
-- 
Stefan Seyfried

"Dispatch war rocket Ajax to bring back his body!"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-libiproute-compile-with-kernel-headers-2.6.17.patch
Type: text/x-patch
Size: 1254 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20110221/742f670a/attachment.bin>


More information about the busybox mailing list