aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-08-22 07:19:28 +0000
committerGuy Harris <guy@alum.mit.edu>1999-08-22 07:19:28 +0000
commitbf9895bb261626beb04ef8ece8636b6077221405 (patch)
treec4c025d8ab41949598187ca8cdbfd25927faec39 /file.h
parentb9ed78d5eb2dbdf48d68110e258d450f39adf650 (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.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/file.h b/file.h
index c83f7fbe68..e1b848af5f 100644
--- a/file.h
+++ b/file.h
@@ -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