diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-07-13 02:53:26 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-07-13 02:53:26 +0000 |
commit | 601c52f0fb7d36599045e90a6baafe918997f644 (patch) | |
tree | 4ddecf128133922607a7f2d194c4d36601690f1e /summary.c | |
parent | 093f28c38214ac4389826e72e18bca01ff08956d (diff) |
Added support for compiling on win32 with Visual C and 'nmake'. It compiles,
but does not link. Perhaps someone who understands the MS tools can help
out. I made it link a few months ago, but with different version of glib/gtk+.
I can't remember how I made it link.
Most of the compatibility issues were resolved with adding
#ifdef HAVE_UNISTD_H the the source code. Please be sure to add this to all
future code.
svn path=/trunk/; revision=359
Diffstat (limited to 'summary.c')
-rw-r--r-- | summary.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* summary.c * Routines for capture file summary window * - * $Id: summary.c,v 1.4 1999/07/09 04:18:36 gram Exp $ + * $Id: summary.c,v 1.5 1999/07/13 02:52:59 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -37,7 +37,10 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> + +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif #ifdef NEED_SNPRINTF_H # ifdef HAVE_STDARG_H @@ -217,8 +220,7 @@ string_for_format(cf.cd_t)); secs_usecs(cf.esec,cf.eusec)); add_string_to_box(string_buff, data_box); - snprintf(string_buff, SUM_STR_MAX, "Between first and last packet: %.3f -seconds", seconds); + snprintf(string_buff, SUM_STR_MAX, "Between first and last packet: %.3f seconds", seconds); add_string_to_box(string_buff, data_box); /* Packet count */ |