Ethereal-dev: [Ethereal-dev] randpkt.c patch

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Gisle Vanem" <giva@xxxxxxxxx>
Date: Sun, 1 Feb 2004 13:57:11 +0100
This is a patch to randpkt.c needed to make it link with MingW.
Looking at Makefile.nmake, I assume it's required for MSVC too.
The variables 'timestamp_type' and cfile' are missing:

--- ethereal-2004-02-01\randpkt.c       Sun Nov 17 22:47:41 2002
+++ randpkt.c   Mon Jan 26 22:17:51 2004
@@ -47,9 +47,14 @@
 #include <string.h>
 #include <glib.h>
 #include "wiretap/wtap.h"
+#include "epan/timestamp.h"
+#include "file.h"

 #define array_length(x)        (sizeof x / sizeof x[0])

+ts_type timestamp_type = TS_RELATIVE;
+capture_file cfile;
+
 /* Types of produceable packets */
 enum {
        PKT_ARP,
-------

BTW. Shouldn't simple_dialog.h be moved to ./gtk since
that's where simple_dialog.c is ?

And there seems to be some inconsistency in the way it is 
included. E.g. gtk\follow_dlg.c says #include "simple_dialog.h",
but gtk\fc_stat.c says  #include "../simple_dialog.h".

--gv