]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Build correctly on dietlibc, thanks to d00mer.
authorRoy Marples <roy@marples.name>
Fri, 23 Mar 2007 10:09:14 +0000 (10:09 +0000)
committerRoy Marples <roy@marples.name>
Fri, 23 Mar 2007 10:09:14 +0000 (10:09 +0000)
ChangeLog
interface.c

index 4a7e6a6c2a4e1798a708327988f02b23c5441aa2..62dd0b1c3a3af291251864353c6a7ffc94d9c2b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 When we get an invalid length for a DHCP option, try and continue anyway.
 When MTU is less than 576 we now ignore it instead of setting the MTU to 576.
+Build correctly on dietlibc, thanks to d00mer.
 
 dhcpcd-3.0.16
 RFC 2131 is full of confusion regarding MTU it seems as the effective minimum
index 58c23156ef5d0a3ad447b337fcbb5c4625564a88..1d17819e72c6dc9776a71f8951c614552e6f699f 100644 (file)
 #include <netinet/ether.h>
 #include <netpacket/packet.h>
 /* Only glibc-2.3 ships with ifaddrs.h */
-#if defined (__GLIBC__) && defined (__GLIBC_PREREQ) && __GLIBC_PREREQ (2,3)
-#define HAVE_IFADDRS_H
-#include <ifaddrs.h>
+#if defined (__GLIBC__) && defined (__GLIBC_PREREQ)
+#  if  __GLIBC_PREREQ (2,3)
+#    define HAVE_IFADDRS_H
+#    include <ifaddrs.h>
+#  endif
 #endif
 #else
+#include <net/if_arp.h> /*dietlibc requires this - normally from
+                         netinet/ether.h */
 #include <net/if_dl.h>
 #include <net/if_types.h>
 #include <net/route.h>
 #include <netinet/in.h>
 #define HAVE_IFADDRS_H
-#include <ifaddrs.h>
+#  include <ifaddrs.h>
 #endif
 
 #include <errno.h>