diff options
Diffstat (limited to 'networking/udhcp/socket.c')
-rw-r--r-- | networking/udhcp/socket.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c index 39f1cec54..a5220ba74 100644 --- a/networking/udhcp/socket.c +++ b/networking/udhcp/socket.c | |||
@@ -22,17 +22,8 @@ | |||
22 | * along with this program; if not, write to the Free Software | 22 | * along with this program; if not, write to the Free Software |
23 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 23 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
24 | */ | 24 | */ |
25 | #include <net/if.h> | ||
26 | #if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION | ||
27 | # include <netpacket/packet.h> | ||
28 | # include <net/ethernet.h> | ||
29 | #else | ||
30 | # include <asm/types.h> | ||
31 | # include <linux/if_packet.h> | ||
32 | # include <linux/if_ether.h> | ||
33 | #endif | ||
34 | |||
35 | #include "common.h" | 25 | #include "common.h" |
26 | #include <net/if.h> | ||
36 | 27 | ||
37 | int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t *nip, uint8_t *mac) | 28 | int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t *nip, uint8_t *mac) |
38 | { | 29 | { |