aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/lib.h b/lib/lib.h
index 0b93bde9..bb8dfd7f 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -284,8 +284,9 @@ void tty_sigreset(int i);
// net.c
int xsocket(int domain, int type, int protocol);
void xsetsockopt(int fd, int level, int opt, void *val, socklen_t len);
-int xconnect(char *host, char *port, int family, int socktype, int protocol,
- int flags);
+struct addrinfo *xgetaddrinfo(char *host, char *port, int family, int socktype,
+ int protocol, int flags);
+int xconnect(struct addrinfo *ai_arg);
int xpoll(struct pollfd *fds, int nfds, int timeout);
int pollinate(int in1, int in2, int out1, int out2, int timeout, int shutdown_timeout);