]> The Tcpdump Group git mirrors - tcpdump/commitdiff
*Another* #define that's also defined by some OS; in this case, it's
authorguy <guy>
Wed, 27 Jun 2001 05:37:19 +0000 (05:37 +0000)
committerguy <guy>
Wed, 27 Jun 2001 05:37:19 +0000 (05:37 +0000)
PF_USER, defined by {Digital,Tru64} UNIX, so, if it's defined, undefine
it before we define it, to squelch compiler warnings.

print-wb.c

index d1f39d28b9447e51a2ea6b67270f0383e6fb6e36..6c6aa3de3a56bf5269ac0eec3baeb93f3b263655 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-wb.c,v 1.25 1999-11-21 09:37:03 fenner Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-wb.c,v 1.26 2001-06-27 05:37:19 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -77,6 +77,10 @@ struct pkt_hdr {
 #define PT_PREQ         5       /* page vector request */
 #define PT_PREP         7       /* page vector reply */
 
+#ifdef PF_USER
+#undef PF_USER                 /* {Digital,Tru64} UNIX define this, alas */
+#endif
+
 /* flags */
 #define PF_USER                0x01    /* hint that packet has interactive data */
 #define PF_VIS         0x02    /* only visible ops wanted */