diff options
-rw-r--r-- | libusbmuxd/sock_stuff.c | 2 | ||||
-rw-r--r-- | libusbmuxd/sock_stuff.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libusbmuxd/sock_stuff.c b/libusbmuxd/sock_stuff.c index 141dd1a..33ac3e6 100644 --- a/libusbmuxd/sock_stuff.c +++ b/libusbmuxd/sock_stuff.c @@ -45,6 +45,7 @@ void sock_stuff_set_verbose(int level) verbose = level; } +#ifndef WIN32 int create_unix_socket(const char *filename) { struct sockaddr_un name; @@ -136,6 +137,7 @@ int connect_unix_socket(const char *filename) return sfd; } +#endif int create_socket(uint16_t port) { diff --git a/libusbmuxd/sock_stuff.h b/libusbmuxd/sock_stuff.h index eb53359..5405b04 100644 --- a/libusbmuxd/sock_stuff.h +++ b/libusbmuxd/sock_stuff.h @@ -33,8 +33,10 @@ enum fd_mode { }; typedef enum fd_mode fd_mode; +#ifndef WIN32 int create_unix_socket(const char *filename); int connect_unix_socket(const char *filename); +#endif int create_socket(uint16_t port); int connect_socket(const char *addr, uint16_t port); int check_fd(int fd, fd_mode fdm, unsigned int timeout); |