diff options
| author | 2010-05-24 17:44:46 +0200 | |
|---|---|---|
| committer | 2010-05-26 01:39:27 +0200 | |
| commit | 1ad796af4f37a69a22b74dc067f8b8e0e44c9a59 (patch) | |
| tree | 743c3629ae4cde3017338fad4ac6b0f33ec7f62d | |
| parent | c85b32434962a2999f9e6872bba4d24433e13577 (diff) | |
| download | usbmuxd-1ad796af4f37a69a22b74dc067f8b8e0e44c9a59.tar.gz usbmuxd-1ad796af4f37a69a22b74dc067f8b8e0e44c9a59.tar.bz2 | |
libusbmuxd: win32 does not support unix domain sockets
| -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) | |||
| 45 | verbose = level; | 45 | verbose = level; |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | #ifndef WIN32 | ||
| 48 | int create_unix_socket(const char *filename) | 49 | int create_unix_socket(const char *filename) |
| 49 | { | 50 | { |
| 50 | struct sockaddr_un name; | 51 | struct sockaddr_un name; |
| @@ -136,6 +137,7 @@ int connect_unix_socket(const char *filename) | |||
| 136 | 137 | ||
| 137 | return sfd; | 138 | return sfd; |
| 138 | } | 139 | } |
| 140 | #endif | ||
| 139 | 141 | ||
| 140 | int create_socket(uint16_t port) | 142 | int create_socket(uint16_t port) |
| 141 | { | 143 | { |
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 { | |||
| 33 | }; | 33 | }; |
| 34 | typedef enum fd_mode fd_mode; | 34 | typedef enum fd_mode fd_mode; |
| 35 | 35 | ||
| 36 | #ifndef WIN32 | ||
| 36 | int create_unix_socket(const char *filename); | 37 | int create_unix_socket(const char *filename); |
| 37 | int connect_unix_socket(const char *filename); | 38 | int connect_unix_socket(const char *filename); |
| 39 | #endif | ||
| 38 | int create_socket(uint16_t port); | 40 | int create_socket(uint16_t port); |
| 39 | int connect_socket(const char *addr, uint16_t port); | 41 | int connect_socket(const char *addr, uint16_t port); |
| 40 | int check_fd(int fd, fd_mode fdm, unsigned int timeout); | 42 | int check_fd(int fd, fd_mode fdm, unsigned int timeout); |
