From da10d3ec7f04cc28401209ecdf45a8fa20d34fd9 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 7 Apr 2002 00:42:51 +0000 Subject: [PATCH] Include before , as is included to define a structure used by , and include before , as is included to define a structure used by (only a pointer to the first structure is used in , and only a pointer to the second structure is used by , so code will compile no matter which order you include them in, but it's a bit cleaner to include before and to include before ). Indicate why we're including and . --- scanner.l | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scanner.l b/scanner.l index b7cab49..bfe52ef 100644 --- a/scanner.l +++ b/scanner.l @@ -22,7 +22,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/scanner.l,v 1.81 2001-09-14 01:40:57 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/scanner.l,v 1.82 2002-04-07 00:42:51 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -39,15 +39,15 @@ static const char rcsid[] = #include "pcap-int.h" #include "gencode.h" -#include #ifdef INET6 -#include -#include +#include /* for "struct sockaddr" in "struct addrinfo" */ +#include /* for "struct addrinfo" */ /* Workaround for AIX 4.3 */ #if !defined(AI_NUMERICHOST) #define AI_NUMERICHOST 0x04 #endif #endif /*INET6*/ +#include #include "tokdefs.h" #ifdef HAVE_OS_PROTO_H