aboutsummaryrefslogtreecommitdiffstats
path: root/resolv.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 /resolv.c
parent093f28c38214ac4389826e72e18bca01ff08956d (diff)
downloadwireshark-601c52f0fb7d36599045e90a6baafe918997f644.tar.gz
wireshark-601c52f0fb7d36599045e90a6baafe918997f644.tar.bz2
wireshark-601c52f0fb7d36599045e90a6baafe918997f644.zip
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 'resolv.c')
-rw-r--r--resolv.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/resolv.c b/resolv.c
index 3d44e15121..f0eb2029e1 100644
--- a/resolv.c
+++ b/resolv.c
@@ -1,7 +1,7 @@
/* resolv.c
* Routines for network object lookup
*
- * $Id: resolv.c,v 1.7 1999/07/07 22:51:59 gram Exp $
+ * $Id: resolv.c,v 1.8 1999/07/13 02:52:58 gram Exp $
*
* Laurent Deniel <deniel@worldnet.fr>
*
@@ -29,15 +29,21 @@
# include "config.h"
#endif
-#ifndef AVOID_DNS_TIMEOUT
-#define AVOID_DNS_TIMEOUT
-#endif
-
#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
+#ifndef WIN32
+#ifndef AVOID_DNS_TIMEOUT
+#define AVOID_DNS_TIMEOUT
+#endif
+#endif
+
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
@@ -47,9 +53,15 @@
# include <netinet/in.h>
#endif
+#ifdef HAVE_NETDB_H
#include <netdb.h>
+#endif
+
#include <signal.h>
+
+#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
+#endif
#ifdef AVOID_DNS_TIMEOUT
# include <setjmp.h>