diff --git a/CHANGES b/CHANGES index baee3122fc..1637ae3597 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1971. [port] linux: make detection of missing IF_NAMESIZE more + robust. [RT #15443] + 1970. [bug] nsupdate: adjust UDP timeout when falling back to unsigned SOA query. [RT #15775] diff --git a/lib/bind/irs/gethostent.c b/lib/bind/irs/gethostent.c index b471c529e0..cfea501fd8 100644 --- a/lib/bind/irs/gethostent.c +++ b/lib/bind/irs/gethostent.c @@ -16,7 +16,7 @@ */ #if !defined(LINT) && !defined(CODECENTER) -static const char rcsid[] = "$Id: gethostent.c,v 1.1.2.2.4.2 2004/03/17 01:49:40 marka Exp $"; +static const char rcsid[] = "$Id: gethostent.c,v 1.1.2.2.4.3 2006/01/10 05:09:16 marka Exp $"; #endif /* Imports */ @@ -608,7 +608,7 @@ scan_interfaces6(int *have_v4, int *have_v6) { } #endif -#ifdef __linux +#if ( defined(__linux__) || defined(__linux) || defined(LINUX) ) #ifndef IF_NAMESIZE # ifdef IFNAMSIZ # define IF_NAMESIZE IFNAMSIZ diff --git a/lib/bind/irs/getnameinfo.c b/lib/bind/irs/getnameinfo.c index 5947c03898..d6d89f3efe 100644 --- a/lib/bind/irs/getnameinfo.c +++ b/lib/bind/irs/getnameinfo.c @@ -3,6 +3,16 @@ * - Thread safe-ness must be checked */ +#if ( defined(__linux__) || defined(__linux) || defined(LINUX) ) +#ifndef IF_NAMESIZE +# ifdef IFNAMSIZ +# define IF_NAMESIZE IFNAMSIZ +# else +# define IF_NAMESIZE 16 +# endif +#endif +#endif + /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. * All rights reserved.