pkgsrc/net/libares/patches/patch-ab
rillig b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00

15 lines
437 B
Text

$NetBSD: patch-ab,v 1.2 2005/12/05 20:50:47 rillig Exp $
--- ares_init.c.orig 1999-10-23 15:28:13.000000000 -0400
+++ ares_init.c
@@ -32,6 +32,10 @@
#include "ares.h"
#include "ares_private.h"
+#ifndef INADDR_LOOPBACK
+#define INADDR_LOOPBACK inet_addr("127.0.0.1")
+#endif
+
static int init_by_options(ares_channel channel, struct ares_options *options,
int optmask);
static int init_by_environment(ares_channel channel);