]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Include <netinet/in.h> to declare "ntohs()"; include <stdlib.h> and
authorguy <guy>
Mon, 10 Dec 2001 08:06:40 +0000 (08:06 +0000)
committerguy <guy>
Mon, 10 Dec 2001 08:06:40 +0000 (08:06 +0000)
<unistd.h> to declare stuff needed by <netinet/in.h> ("print-vrrp.c"
includes both of them).

print-msdp.c

index 62cb1bf21a5f90f17d02c4d5328c706f8020e615..4fe9eb87c4a4229999cf8351cc4510bed4b6d4b0 100644 (file)
@@ -17,7 +17,7 @@
  */
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-msdp.c,v 1.1 2001-09-17 20:06:18 fenner Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-msdp.c,v 1.2 2001-12-10 08:06:40 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -25,6 +25,10 @@ static const char rcsid[] =
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+#include <netinet/in.h>
 
 #include "interface.h"
 #include "addrtoname.h"