aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/snoop.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-07-13 02:53:26 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-07-13 02:53:26 +0000
commit601c52f0fb7d36599045e90a6baafe918997f644 (patch)
tree4ddecf128133922607a7f2d194c4d36601690f1e /wiretap/snoop.c
parent093f28c38214ac4389826e72e18bca01ff08956d (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 'wiretap/snoop.c')
-rw-r--r--wiretap/snoop.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/wiretap/snoop.c b/wiretap/snoop.c
index 55e9dc3ba0..ceb6aeac7e 100644
--- a/wiretap/snoop.c
+++ b/wiretap/snoop.c
@@ -1,6 +1,6 @@
/* snoop.c
*
- * $Id: snoop.c,v 1.4 1999/03/01 18:57:07 gram Exp $
+ * $Id: snoop.c,v 1.5 1999/07/13 02:53:26 gram Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu>
@@ -20,10 +20,15 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include "wtap.h"
#include "buffer.h"
#include "snoop.h"
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif
/* See RFC 1761 for a description of the "snoop" file format. */