From 8e5f8a700569015bc36a84850c6d4b4bba5cd1ae Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sat, 25 Sep 2010 16:52:10 +0200 Subject: Use Winsock's closesocket() function instead of close() on Windows. --- libusbmuxd/sock_stuff.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libusbmuxd/sock_stuff.h') diff --git a/libusbmuxd/sock_stuff.h b/libusbmuxd/sock_stuff.h index db90385..eb9622c 100644 --- a/libusbmuxd/sock_stuff.h +++ b/libusbmuxd/sock_stuff.h @@ -43,6 +43,8 @@ int connect_socket(const char *addr, uint16_t port); #endif int check_fd(int fd, fd_mode fdm, unsigned int timeout); +int close_socket(int fd); + int recv_buf(int fd, void *data, size_t size); int peek_buf(int fd, void *data, size_t size); int recv_buf_timeout(int fd, void *data, size_t size, int flags, -- cgit v1.1-32-gdbae