pkgsrc/news/knews/patches/patch-af
tron 32c42d46ce Bump the version number to 1.0nb3 after major rework of IPv6 patch:
- No busy loops when connecting to the NNTP server.
- Handle multiple records return by getaddrinfo(3) at the proper location.
- Avoid unnecessary socket creations and deletions by always passing the
  correct address family to open_socket().
2001-02-24 22:40:39 +00:00

27 lines
791 B
Text

$NetBSD: patch-af,v 1.4 2001/02/24 22:40:40 tron Exp $
--- src/sysdeps.h.orig Fri Jan 9 18:16:24 1998
+++ src/sysdeps.h Sat Feb 24 23:30:34 2001
@@ -2,7 +2,11 @@
* Copyright (C) 1995, 1996 Karl-Johan Johnsson.
*/
+#if defined(USE_INET6)
+typedef struct addrinfo SERV_ADDR;
+#else
typedef struct SERV_ADDR SERV_ADDR;
+#endif
#define NNTP_PORT 119
#define FTP_PORT 21
@@ -14,7 +18,9 @@
extern void abort_callback(Widget, XtPointer, XtPointer);
extern SERV_ADDR *get_host(char*, unsigned short, int);
-extern int open_socket(void);
+extern SERV_ADDR *next_addr(SERV_ADDR *);
+extern void free_addr(SERV_ADDR *);
+extern int open_socket(SERV_ADDR *);
extern int connect_socket(int, SERV_ADDR*);
extern int open_duplex(int*);
extern int bind_and_listen(int);