diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-04-30 12:38:06 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-04-30 12:38:06 -0700 |
commit | 4732aee0622005bc612f75d0319e6e3a057301b4 (patch) | |
tree | 3e026c84a71df969c6e5ee5655ee701feea59dec /android/async-socket-connector.c | |
parent | 7136b053b7fc7840ec64e01d1d19ab822e1f949a (diff) | |
download | external_qemu-4732aee0622005bc612f75d0319e6e3a057301b4.zip external_qemu-4732aee0622005bc612f75d0319e6e3a057301b4.tar.gz external_qemu-4732aee0622005bc612f75d0319e6e3a057301b4.tar.bz2 |
Fix Windows build
Change-Id: I732fa0d756656ad9976eddd06b16644e208aa512
Diffstat (limited to 'android/async-socket-connector.c')
-rw-r--r-- | android/async-socket-connector.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/async-socket-connector.c b/android/async-socket-connector.c index 0f50399..f4d51b5 100644 --- a/android/async-socket-connector.c +++ b/android/async-socket-connector.c @@ -312,11 +312,15 @@ async_socket_connector_new(const SockAddress* address, connector->ref_count = 1; /* Copy socket address. */ +#ifdef _WIN32 + connector->address = *address; +#else if (sock_address_get_family(address) == SOCKET_UNIX) { sock_address_init_unix(&connector->address, sock_address_get_path(address)); } else { connector->address = *address; } +#endif /* Create a looper for asynchronous I/O. */ if (looper == NULL) { |