[PATCH 4/5] Gate including net/ethernet.h on HAVE_NET_ETHERNET_H

Dan Fandrich dan at coneharvesters.com
Thu Jun 9 23:00:18 UTC 2011


I've reworked and simplified the header files included in sources requiring
Ethernet support. I've been able to validate the result on a number
of Linux systems; most of these sources already include Linux header files
unconditionally, making them nonportable to other systems.  The result
works on glibc versions ranging from 2.11 down to 2.3, as well as uClibc
versions 0.9.29 and 0.9.30 and Android bionic 2.1. Only one configuration
macro was needed: HAVE_NET_ETHERNET_H

I tried against glibc 2.2.5 as well, but the version of gcc with which
it was bundled (2.96) was too old to support some of the C99 features
that Busybox now employs. That effectively makes glibc 2.3 the oldest
version that is worth bothering to support.

>>> Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Simplify-Ethernet-header-includes.patch
Type: text/x-patch
Size: 8347 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20110609/da5b0219/attachment.bin>


More information about the busybox mailing list