From: Ted Lemon Date: Wed, 24 Feb 1999 15:33:14 +0000 (+0000) Subject: Eliminate redundant #defines. X-Git-Tag: V2-BETA-1-PATCH-16~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a402309275ea647b437b2829cb8f347db6e2dc1b;p=thirdparty%2Fdhcp.git Eliminate redundant #defines. --- diff --git a/includes/cf/linux.h b/includes/cf/linux.h index 14fdd7c58..df81df586 100644 --- a/includes/cf/linux.h +++ b/includes/cf/linux.h @@ -112,28 +112,26 @@ extern int h_errno; #define GET_TIME(x) time ((x)) #if defined (USE_DEFAULT_NETWORK) -# if (LINUX_MAJOR >= 2) && (LINUX_MINOR >= 1) -# define USE_LPF -# define LINUX_SLASHPROC_DISCOVERY -# define PROCDEV_DEVICE "/proc/net/dev" -# define HAVE_ARPHRD_TUNNEL +# if (LINUX_MAJOR >= 2) +# if (LINUX_MINOR >= 1) +# define USE_LPF +# define LINUX_SLASHPROC_DISCOVERY +# define PROCDEV_DEVICE "/proc/net/dev" +# define HAVE_ARPHRD_TUNNEL +# endif # define HAVE_ARPHRD_METRICOM # define HAVE_ARPHRD_IEEE802 # define HAVE_ARPHRD_LOOPBACK # define HAVE_SO_BINDTODEVICE # define HAVE_SIOCGIFHWADDR -# else -# if (LINUX_MAJOR == 2) -# define HAVE_ARPHRD_METRICOM -# define HAVE_ARPHRD_IEEE802 -# define HAVE_ARPHRD_LOOPBACK -# define HAVE_SO_BINDTODEVICE -# define HAVE_SIOCGIFHWADDR -# endif -# define USE_SOCKETS -# define IGNORE_HOSTUNREACH +# else /* LINUX_MAJOR < 2 */ # endif #endif +#if !defined (USE_LPF) +# define USE_SOCKETS +# define IGNORE_HOSTUNREACH +#endif + #define ALIAS_NAMES_PERMUTED #define SKIP_DUMMY_INTERFACES