From 91b0719dc73e47c32a9fa4e3c0e6068901c546d0 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 24 May 2010 17:46:33 +0200 Subject: libusbmuxd: use define for the win32 port number --- libusbmuxd/libusbmuxd.c | 2 +- libusbmuxd/usbmuxd-proto.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libusbmuxd/libusbmuxd.c b/libusbmuxd/libusbmuxd.c index 9c48ea1..9d54a88 100644 --- a/libusbmuxd/libusbmuxd.c +++ b/libusbmuxd/libusbmuxd.c @@ -68,7 +68,7 @@ static usbmuxd_device_info_t *devices_find(int handle) static int connect_usbmuxd_socket() { #ifdef WIN32 - return connect_socket("127.0.0.1", 27015); + return connect_socket("127.0.0.1", USBMUXD_SOCKET_PORT); #else return connect_unix_socket(USBMUXD_SOCKET_FILE); #endif diff --git a/libusbmuxd/usbmuxd-proto.h b/libusbmuxd/usbmuxd-proto.h index 9d841ca..0d4596c 100644 --- a/libusbmuxd/usbmuxd-proto.h +++ b/libusbmuxd/usbmuxd-proto.h @@ -28,7 +28,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include #define USBMUXD_PROTOCOL_VERSION 0 +#ifdef WIN32 +#define USBMUXD_SOCKET_PORT 27015 +#else #define USBMUXD_SOCKET_FILE "/var/run/usbmuxd" +#endif enum usbmuxd_result { RESULT_OK = 0, -- cgit v1.1-32-gdbae