From: guy Date: Fri, 14 Jul 2000 02:49:00 +0000 (+0000) Subject: Include our own "nameser.h", rather than the system's , X-Git-Tag: tcpdump-3.5.1~222 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/cdae010076e6526a8c8684006fbcb27c662a1e04 Include our own "nameser.h", rather than the system's , to get NAMESERVER_PORT defined. defines T_UNSPEC; that causes collisions on Solaris (and probably at least some other OSes) with stuff included by , generating noise when compiling. Move the include of "nameser.h" near the includes of other protocol-defining header files in tcpdump; this also moves it below the include of , so we can then move the #undefs of NOERROR and T_UNSPEC below most includes and still have it before the include of "nameser.h", squelching the compiler complaints. --- diff --git a/print-udp.c b/print-udp.c index e44cabff..ec26fcef 100644 --- a/print-udp.c +++ b/print-udp.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.73 2000-04-27 11:09:08 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.74 2000-07-14 02:49:00 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -39,13 +39,6 @@ static const char rcsid[] = #include #include -#ifdef NOERROR -#undef NOERROR /* Solaris sucks */ -#endif -#ifdef T_UNSPEC -#undef T_UNSPEC /* SINIX does too */ -#endif -#include #ifdef SEGSIZE #undef SEGSIZE #endif @@ -63,6 +56,13 @@ static const char rcsid[] = #include "addrtoname.h" #include "appletalk.h" +#ifdef NOERROR +#undef NOERROR /* Solaris sucks */ +#endif +#ifdef T_UNSPEC +#undef T_UNSPEC /* SINIX does too */ +#endif +#include "nameser.h" #include "nfs.h" #include "bootp.h"