diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-08-22 07:19:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-08-22 07:19:28 +0000 |
commit | bf9895bb261626beb04ef8ece8636b6077221405 (patch) | |
tree | c4c025d8ab41949598187ca8cdbfd25927faec39 /file.h | |
parent | b9ed78d5eb2dbdf48d68110e258d450f39adf650 (diff) |
Remove the include of <sys/time.h> from "file.h" - it's neither
necessary nor sufficient if you're using "struct tm" (on many, perhaps
most, perhaps even all modern UNIXes, <sys/time.h> includes <time.h>,
which declares "struct tm", but that's not necessarily the case on
non-UNIX systems).
Include <time.h> in "file.c", to declare "struct tm".
Don't use PCAP_ERRBUF_SIZE to declare a message string buffer - that
won't work if you don't have "libpcap".
svn path=/trunk/; revision=549
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1,7 +1,7 @@ /* file.h * Definitions for file structures and routines * - * $Id: file.h,v 1.39 1999/08/22 00:47:43 guy Exp $ + * $Id: file.h,v 1.40 1999/08/22 07:19:28 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -30,10 +30,6 @@ #include <sys/types.h> #endif -#ifdef HAVE_SYS_TIME_H -#include <sys/time.h> -#endif - #ifndef __WTAP_H__ #include "wiretap/wtap.h" #endif @@ -44,7 +40,6 @@ #endif #endif - #ifndef __DFILTER_H__ #include "dfilter.h" #endif |