summaryrefslogtreecommitdiff
path: root/www/squid/patches/patch-ba
diff options
context:
space:
mode:
Diffstat (limited to 'www/squid/patches/patch-ba')
-rw-r--r--www/squid/patches/patch-ba26
1 files changed, 13 insertions, 13 deletions
diff --git a/www/squid/patches/patch-ba b/www/squid/patches/patch-ba
index 8aef12abad1..9138c13ee51 100644
--- a/www/squid/patches/patch-ba
+++ b/www/squid/patches/patch-ba
@@ -1,39 +1,39 @@
-$NetBSD: patch-ba,v 1.2 2002/02/24 12:25:41 veego Exp $
+$NetBSD: patch-ba,v 1.3 2002/10/13 16:43:22 taca Exp $
---- src/dnsserver.c.orig Fri Jan 12 01:51:47 2001
-+++ src/dnsserver.c Sun Feb 24 12:44:12 2002
-@@ -135,6 +135,7 @@
+--- src/dnsserver.c.orig Mon Jul 1 17:55:46 2002
++++ src/dnsserver.c
+@@ -138,6 +138,9 @@
#if HAVE_RESOLV_H
#include <resolv.h>
#endif
++#if HAVE_UTIL_H
+#include <util.h>
++#endif
#include "util.h"
#include "snprintf.h"
-@@ -258,8 +259,10 @@
- {
- char request[512];
+@@ -263,6 +266,9 @@ main(int argc, char *argv[])
char *t = NULL;
-- int c;
-+ int c, count = 0;
-+#if HAVE_RES_INIT
+ int c;
int opt_s = 0;
++#if HAVE_SETPROCTITLE
++ int count = 0;
+#endif
extern char *optarg;
safe_inet_addr("255.255.255.255", &no_addr);
-@@ -333,6 +336,10 @@
+@@ -336,6 +342,10 @@ main(int argc, char *argv[])
}
}
+#if HAVE_SETPROCTITLE
-+ setproctitle("(%d requests)", count);
++ setproctitle("(no requests)");
+#endif
+
for (;;) {
memset(request, '\0', REQ_SZ);
if (fgets(request, REQ_SZ, stdin) == NULL)
-@@ -345,6 +352,10 @@
+@@ -348,6 +358,10 @@ main(int argc, char *argv[])
*t = '\0'; /* strip CR */
lookup(request);
fflush(stdout);