aboutsummaryrefslogtreecommitdiffstats
path: root/resolv.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-10-14 06:55:11 +0000
committerGuy Harris <guy@alum.mit.edu>1999-10-14 06:55:11 +0000
commitae276ffe2010027af678da5453339affcdde66be (patch)
tree09b20a56b5d5081b22bafd4a31a690a2a3bd22ec /resolv.c
parent831497b33e358305b8f409882ec61097335b772d (diff)
downloadwireshark-ae276ffe2010027af678da5453339affcdde66be.tar.gz
wireshark-ae276ffe2010027af678da5453339affcdde66be.tar.bz2
wireshark-ae276ffe2010027af678da5453339affcdde66be.zip
Make it build on systems lacking "inet_pton()", "inet_ntop()", and a
definition of "AF_INET6". Declare those functions and, if it's not defined, define "AF_INET6" in "inet_v6defs.h", and arrange to include it if "inet_ntop()" is missing. (Systems will probably have both of them or lack both of them, and we may choose not to use the system's "inet_pton()" because it's buggy, so base the decision on whether to include "inet_v6defs.h" on whether we're using the system's "inet_ntop()" or not.) Fix some macro references in "Makefile.am" and "configure.in". svn path=/trunk/; revision=830
Diffstat (limited to 'resolv.c')
-rw-r--r--resolv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/resolv.c b/resolv.c
index 4c8efb6404..62c84a1fac 100644
--- a/resolv.c
+++ b/resolv.c
@@ -1,7 +1,7 @@
/* resolv.c
* Routines for network object lookup
*
- * $Id: resolv.c,v 1.14 1999/10/14 05:41:33 itojun Exp $
+ * $Id: resolv.c,v 1.15 1999/10/14 06:55:10 guy Exp $
*
* Laurent Deniel <deniel@worldnet.fr>
*
@@ -39,7 +39,6 @@
#endif
#endif
-
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
@@ -68,6 +67,10 @@
# include <setjmp.h>
#endif
+#ifdef NEED_INET_V6DEFS_H
+# include "inet_v6defs.h"
+#endif
+
#include "packet.h"
#include "packet-ipv6.h"
#include "globals.h"