]> The Tcpdump Group git mirrors - libpcap/commitdiff
Indicate why we have incomplete definitions for "struct mbuf" and
authorguy <guy>
Tue, 9 Apr 2002 07:37:59 +0000 (07:37 +0000)
committerguy <guy>
Tue, 9 Apr 2002 07:37:59 +0000 (07:37 +0000)
"struct rtentry" (in <net/if.h> on some systems, e.g.  Digital UNIX 4.0,
there are prototypes for kernel functions that include "struct mbuf *"
and "struct rtentry *" arguments, and they are included even if you're
just user-mode code).

inet.c

diff --git a/inet.c b/inet.c
index cb4f5e47110eec19447aa8534037195df288719c..a90b22993125d98131dcb39369d0158d15a6ba98 100644 (file)
--- a/inet.c
+++ b/inet.c
@@ -34,7 +34,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/libpcap/inet.c,v 1.45 2001-10-28 20:40:43 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/inet.c,v 1.46 2002-04-09 07:37:59 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -50,8 +50,8 @@ static const char rcsid[] =
 #endif
 #include <sys/time.h>                          /* concession to AIX */
 
-struct mbuf;
-struct rtentry;
+struct mbuf;           /* Squelch compiler warnings on some platforms for */
+struct rtentry;                /* declarations in <net/if.h> */
 #include <net/if.h>
 #include <netinet/in.h>