summaryrefslogtreecommitdiff
path: root/news/knews/patches/patch-af
blob: 66a17b429c89077b147c89aa97d447547a04b3ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-af,v 1.3 2001/02/23 22:19:42 tron Exp $

--- src/sysdeps.h.orig	Fri Jan  9 18:16:24 1998
+++ src/sysdeps.h	Fri Feb 23 22:08:23 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,7 @@
 extern void		 abort_callback(Widget, XtPointer, XtPointer);
 
 extern SERV_ADDR	*get_host(char*, unsigned short, int);
-extern int		 open_socket(void);
+extern int		 open_socket(int);
 extern int		 connect_socket(int, SERV_ADDR*);
 extern int		 open_duplex(int*);
 extern int		 bind_and_listen(int);