]> The Tcpdump Group git mirrors - tcpdump/commitdiff
"print-sctp.c" doesn't have to include <net/if.h>, and, if it doesn't do
authorguy <guy>
Wed, 1 Aug 2001 03:31:55 +0000 (03:31 +0000)
committerguy <guy>
Wed, 1 Aug 2001 03:31:55 +0000 (03:31 +0000)
so, it doesn't need to provide incomplete definitions of "struct mbuf"
or "struct rtentry", either.  If it *does* include <net/if.h>, it
appears to fail to compile on at least some versions of AIX; remove the
include and the incomplete definitions.

print-sctp.c

index 7fdf1c7d52b5b31c58fb6128cd2805c44d608e74..b37cc37c6f28a266302e9d1e5c2f40719ca77176 100644 (file)
@@ -35,7 +35,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-"@(#) $Header: /tcpdump/master/tcpdump/print-sctp.c,v 1.4 2001-06-27 02:48:45 itojun Exp $ (NETLAB/PEL)";
+"@(#) $Header: /tcpdump/master/tcpdump/print-sctp.c,v 1.5 2001-08-01 03:31:55 guy Exp $ (NETLAB/PEL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -51,12 +51,6 @@ static const char rcsid[] =
 #include "sctpConstants.h"
 #include <assert.h>
 
-#if __STDC__
-struct mbuf;
-struct rtentry;
-#endif
-#include <net/if.h>
-
 #include <netinet/in.h>
 
 #include <stdio.h>