summaryrefslogtreecommitdiffstats
path: root/libusbmuxd/sock_stuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'libusbmuxd/sock_stuff.c')
-rw-r--r--libusbmuxd/sock_stuff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libusbmuxd/sock_stuff.c b/libusbmuxd/sock_stuff.c
index 0592f6b..302b53a 100644
--- a/libusbmuxd/sock_stuff.c
+++ b/libusbmuxd/sock_stuff.c
@@ -192,6 +192,7 @@ int create_socket(uint16_t port)
192 return sfd; 192 return sfd;
193} 193}
194 194
195#if defined(WIN32) || defined(__CYGWIN__)
195int connect_socket(const char *addr, uint16_t port) 196int connect_socket(const char *addr, uint16_t port)
196{ 197{
197 int sfd = -1; 198 int sfd = -1;
@@ -251,6 +252,7 @@ int connect_socket(const char *addr, uint16_t port)
251 252
252 return sfd; 253 return sfd;
253} 254}
255#endif /* WIN32 || __CYGWIN__ */
254 256
255int check_fd(int fd, fd_mode fdm, unsigned int timeout) 257int check_fd(int fd, fd_mode fdm, unsigned int timeout)
256{ 258{