summaryrefslogtreecommitdiff
path: root/nameser.h
diff options
context:
space:
mode:
authorguy <guy>2001-06-27 05:40:16 +0000
committerguy <guy>2001-06-27 05:40:16 +0000
commitc3d82102cdf773bbd4968ebf97db7a252ced067b (patch)
tree93386c793f55533f72ef43ba950d6e8002325534 /nameser.h
parent615a19ccc1045fa5480c08d3431daf04345e21d2 (diff)
downloadtcpdump-c3d82102cdf773bbd4968ebf97db7a252ced067b.tar.gz
Yet *another* #define of ours that an OS also defines; in this case it's
T_NULL, defined by some STREAMS/TPI/XTI/TLI/whatever header file in HP-UX - if it's defined, undefine it before we define it, to squelch compiler warnings.
Diffstat (limited to 'nameser.h')
-rw-r--r--nameser.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/nameser.h b/nameser.h
index 52c31481..162b4d2b 100644
--- a/nameser.h
+++ b/nameser.h
@@ -1,4 +1,4 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/nameser.h,v 1.8 2001-06-26 06:19:03 guy Exp $ (LBL) */
+/* @(#) $Header: /tcpdump/master/tcpdump/nameser.h,v 1.9 2001-06-27 05:40:16 guy Exp $ (LBL) */
/*
* Copyright (c) 1983, 1989, 1993
* The Regents of the University of California. All rights reserved.
@@ -97,8 +97,11 @@
/*
* Undefine various #defines from various System V-flavored OSes (Solaris,
- * SINIX) so the compiler doesn't whine that we redefine them.
+ * SINIX, HP-UX) so the compiler doesn't whine that we redefine them.
*/
+#ifdef T_NULL
+#undef T_NULL
+#endif
#ifdef T_OPT
#undef T_OPT
#endif