summaryrefslogtreecommitdiff
path: root/networking/udhcp/socket.c
diff options
context:
space:
mode:
authorDan Fandrich2011-06-10 05:17:59 +0200
committerDenys Vlasenko2011-06-10 05:17:59 +0200
commitf533ec876716415ed0e6ba28d13dfb6263068e82 (patch)
tree30b5b8ddcad3d2673d76110b8a792a5cd1b3b067 /networking/udhcp/socket.c
parentd488f5e8dbdcd1f5f0ebb2ee9c1f2fb4a5374290 (diff)
downloadbusybox-f533ec876716415ed0e6ba28d13dfb6263068e82.zip
busybox-f533ec876716415ed0e6ba28d13dfb6263068e82.tar.gz
*: simplify Ethernet header includes
Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/socket.c')
-rw-r--r--networking/udhcp/socket.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c
index 39f1cec..a5220ba 100644
--- a/networking/udhcp/socket.c
+++ b/networking/udhcp/socket.c
@@ -22,17 +22,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include <net/if.h>
-#if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION
-# include <netpacket/packet.h>
-# include <net/ethernet.h>
-#else
-# include <asm/types.h>
-# include <linux/if_packet.h>
-# include <linux/if_ether.h>
-#endif
-
#include "common.h"
+#include <net/if.h>
int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t *nip, uint8_t *mac)
{