diff options
Diffstat (limited to 'networking/udhcp/packet.c')
-rw-r--r-- | networking/udhcp/packet.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c index 2b7528cc7..66b42c5e1 100644 --- a/networking/udhcp/packet.c +++ b/networking/udhcp/packet.c | |||
@@ -6,18 +6,11 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | #include <netinet/in.h> | ||
10 | #if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION | ||
11 | # include <netpacket/packet.h> | ||
12 | # include <net/ethernet.h> | ||
13 | #else | ||
14 | # include <asm/types.h> | ||
15 | # include <linux/if_packet.h> | ||
16 | # include <linux/if_ether.h> | ||
17 | #endif | ||
18 | |||
19 | #include "common.h" | 9 | #include "common.h" |
20 | #include "dhcpd.h" | 10 | #include "dhcpd.h" |
11 | #include <netinet/in.h> | ||
12 | #include <netinet/if_ether.h> | ||
13 | #include <netpacket/packet.h> | ||
21 | 14 | ||
22 | void FAST_FUNC udhcp_init_header(struct dhcp_packet *packet, char type) | 15 | void FAST_FUNC udhcp_init_header(struct dhcp_packet *packet, char type) |
23 | { | 16 | { |