summaryrefslogtreecommitdiffstats
path: root/libcutils/socket_network_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcutils/socket_network_client.c')
-rw-r--r--libcutils/socket_network_client.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/libcutils/socket_network_client.c b/libcutils/socket_network_client.c
index 8a8474e..4826033 100644
--- a/libcutils/socket_network_client.c
+++ b/libcutils/socket_network_client.c
@@ -21,13 +21,11 @@
#include <string.h>
#include <unistd.h>
-#ifndef HAVE_WINSOCK
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
-#endif
#include <cutils/sockets.h>
@@ -68,13 +66,6 @@ int socket_network_client_timeout(const char *host, int port, int type, int time
s = socket(hp->h_addrtype, type, 0);
if (s < 0) return -1;
-#ifdef HAVE_WINSOCK
- if (connect(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
- close(s);
- return -1;
- }
- return s;
-#else
if ((flags = fcntl(s, F_GETFL, 0)) < 0) {
close(s);
return -1;
@@ -132,5 +123,4 @@ done:
}
return s;
-#endif
}