From: Roy Marples Date: Fri, 23 Mar 2007 10:09:14 +0000 (+0000) Subject: Build correctly on dietlibc, thanks to d00mer. X-Git-Tag: v3.2.3~298 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7095767f137764e5a98429f49a2bb42188c38bc;p=thirdparty%2Fdhcpcd.git Build correctly on dietlibc, thanks to d00mer. --- diff --git a/ChangeLog b/ChangeLog index 4a7e6a6c..62dd0b1c 100644 --- 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 diff --git a/interface.c b/interface.c index 58c23156..1d17819e 100644 --- a/interface.c +++ b/interface.c @@ -34,17 +34,21 @@ #include #include /* Only glibc-2.3 ships with ifaddrs.h */ -#if defined (__GLIBC__) && defined (__GLIBC_PREREQ) && __GLIBC_PREREQ (2,3) -#define HAVE_IFADDRS_H -#include +#if defined (__GLIBC__) && defined (__GLIBC_PREREQ) +# if __GLIBC_PREREQ (2,3) +# define HAVE_IFADDRS_H +# include +# endif #endif #else +#include /*dietlibc requires this - normally from + netinet/ether.h */ #include #include #include #include #define HAVE_IFADDRS_H -#include +# include #endif #include