Include our own "nameser.h", rather than the system's <arpa/nameser.h>,
to get NAMESERVER_PORT defined.
<arpa/nameser.h> defines T_UNSPEC; that causes collisions on Solaris
(and probably at least some other OSes) with stuff included by
<rpc/rpc.h>, 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 <rpc/rpc.h>,
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.
1 file changed