diff options
author | Cerrato Renaud | 2010-06-10 10:41:30 +0200 |
---|---|---|
committer | Hector Martin | 2010-06-13 19:38:39 +0200 |
commit | 63ffaef5b9ba6225d2106f9d4ec07dd318163287 (patch) | |
tree | 20e27ae61fdce88281cba12b2423088e7befe935 /libusbmuxd/libusbmuxd.c | |
parent | 713cfb3d145f9db242138405f16d4ab225e8ba04 (diff) | |
download | usbmuxd-63ffaef5b9ba6225d2106f9d4ec07dd318163287.tar.gz usbmuxd-63ffaef5b9ba6225d2106f9d4ec07dd318163287.tar.bz2 |
Fix cygwin builds
- libusbmuxd/CMakeLists.txt : there was a neglect into install rules, for DLL, RUNTIME was missing.
- libusbmuxd.c : added __CYGWIN__ conditionnal compilation checks to force regular socket instead of UNIX sockets on CYGWIN platform.
Diffstat (limited to 'libusbmuxd/libusbmuxd.c')
-rw-r--r-- | libusbmuxd/libusbmuxd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusbmuxd/libusbmuxd.c b/libusbmuxd/libusbmuxd.c index 564adcb..bb30c04 100644 --- a/libusbmuxd/libusbmuxd.c +++ b/libusbmuxd/libusbmuxd.c @@ -83,7 +83,7 @@ static usbmuxd_device_info_t *devices_find(int handle) */ static int connect_usbmuxd_socket() { -#ifdef WIN32 +#if defined(WIN32) || defined(__CYGWIN__) return connect_socket("127.0.0.1", USBMUXD_SOCKET_PORT); #else return connect_unix_socket(USBMUXD_SOCKET_FILE); |