summaryrefslogtreecommitdiff
path: root/news/knews/patches/patch-ah
diff options
context:
space:
mode:
Diffstat (limited to 'news/knews/patches/patch-ah')
-rw-r--r--news/knews/patches/patch-ah35
1 files changed, 35 insertions, 0 deletions
diff --git a/news/knews/patches/patch-ah b/news/knews/patches/patch-ah
new file mode 100644
index 00000000000..d3c4b634d5f
--- /dev/null
+++ b/news/knews/patches/patch-ah
@@ -0,0 +1,35 @@
+$NetBSD: patch-ah,v 1.1 2001/02/23 22:19:42 tron Exp $
+
+--- src/xutil.c.orig Fri Jan 9 18:16:20 1998
++++ src/xutil.c Fri Feb 23 22:44:30 2001
+@@ -18,6 +18,7 @@
+ #include "resource.h"
+ #include "save.h"
+ #include "search.h"
++#include "sysdeps.h"
+ #include "server.h"
+ #include "tag.h"
+ #include "thread.h"
+@@ -40,6 +41,10 @@
+ #include <X11/xpm.h>
+ #endif
+
++#if defined(USE_INET6)
++#include <netdb.h>
++#endif
++
+ void set_curr_art(ARTICLE *art, int center)
+ {
+ if (global.mode == NewsModeThread) {
+@@ -343,7 +348,11 @@
+ qf(main_server);
+
+ server_close(main_server);
++#if defined(USE_INET6)
++ freeaddrinfo(global.serv_addr);
++#else
+ XtFree(global.serv_addr);
++#endif
+ global.serv_addr = NULL;
+
+ clear_thread_context(main_thr);