]> The Tcpdump Group git mirrors - libpcap/commitdiff
<pcap.h> include <sys/time.h>, and "pcap-int.h" includes <pcap.h>, so
authorguy <guy>
Tue, 9 Apr 2002 07:49:41 +0000 (07:49 +0000)
committerguy <guy>
Tue, 9 Apr 2002 07:49:41 +0000 (07:49 +0000)
there's no need to include <sys/time.h> ourselves.

No UNIX-specific functions are used here, so there's no need to include
<unistd.h>.

scanner.l

index 774fac2ba9a1b8a0876cbaca9274de9b99f25ed3..6f36be3256cf18f942668bf8c73e78091cb08efb 100644 (file)
--- 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.2.1 2002-04-07 00:43:50 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/scanner.l,v 1.81.2.2 2002-04-09 07:49:41 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -30,10 +30,8 @@ static const char rcsid[] =
 #endif
 
 #include <sys/types.h>
-#include <sys/time.h>
 
 #include <ctype.h>
-#include <unistd.h>
 #include <string.h>
 
 #include "pcap-int.h"