blob: 0aae44cb9d113b79c60b343a705f977f17bc6bf6 (
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
26
27
|
$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);
|