diff options
author | guy <guy> | 2001-06-26 06:19:03 +0000 |
---|---|---|
committer | guy <guy> | 2001-06-26 06:19:03 +0000 |
commit | e4b93879cf7649db0114ff8740c27a9b1dd64ff4 (patch) | |
tree | 6c83866d7351ca1b2c1e38e185afec160112626a /nameser.h | |
parent | 79fd5507b2c0cbda50b68df15b6d90d953e53807 (diff) | |
download | tcpdump-e4b93879cf7649db0114ff8740c27a9b1dd64ff4.tar.gz |
Move all the "undefine so that the compiler doesn't whine about
redefinitions" stuff from files that include "nameser.h" to "nameser.h"
itself (we used to include <arpa/nameser.h>, over which we had no
control so we couldn't do that, but we now have our own "nameser.h").
Add T_OPT to the list of things we undefine, and undefine T_UNSPEC iff
T_UNSPEC is defined, not iff NOERROR is defined.
Replace the include of <arpa/nameser.h> in "print-rx.c" with an include
of "nameser.h", and "#if 0" it out pending a determination of whether
it's necessary (why would AFS's RX care about the internals of DNS
packets?) or not.
Diffstat (limited to 'nameser.h')
-rw-r--r-- | nameser.h | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* @(#) $Header: /tcpdump/master/tcpdump/nameser.h,v 1.7 2001-02-20 06:31:34 itojun Exp $ (LBL) */ +/* @(#) $Header: /tcpdump/master/tcpdump/nameser.h,v 1.8 2001-06-26 06:19:03 guy Exp $ (LBL) */ /* * Copyright (c) 1983, 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -96,6 +96,20 @@ #define ZONEREF 0xf /* incremental zone referesh */ /* + * Undefine various #defines from various System V-flavored OSes (Solaris, + * SINIX) so the compiler doesn't whine that we redefine them. + */ +#ifdef T_OPT +#undef T_OPT +#endif +#ifdef T_UNSPEC +#undef T_UNSPEC +#endif +#ifdef NOERROR +#undef NOERROR +#endif + +/* * Currently defined response codes */ #define NOERROR 0 /* no error */ |