diff options
author | Yang Tse <yangsita@gmail.com> | 2006-10-18 21:05:40 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-10-18 21:05:40 +0000 |
commit | 5df4be11657fc49d74e1e6b39c0003f7cf2f3772 (patch) | |
tree | 93d2ef65b7accbd9a6572dbfca634dc69e95ffce /lib/telnet.c | |
parent | 96445f1b7da2013c294c541530f0160e248b430e (diff) |
Check for USE_WINSOCK instead of WIN32 where the check was done
to verify winsock API availability.
Diffstat (limited to 'lib/telnet.c')
-rw-r--r-- | lib/telnet.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/telnet.c b/lib/telnet.c index 34cb8db20..3d3961078 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -102,7 +102,7 @@ #define CURL_SB_EOF(x) (x->subpointer >= x->subend) #define CURL_SB_LEN(x) (x->subend - x->subpointer) -#ifdef WIN32 +#ifdef USE_WINSOCK typedef FARPROC WSOCK2_FUNC; static CURLcode check_wsock2 ( struct SessionHandle *data ); #endif @@ -171,7 +171,7 @@ struct TELNET { TelnetReceive telrcv_state; }; -#ifdef WIN32 +#ifdef USE_WINSOCK static CURLcode check_wsock2 ( struct SessionHandle *data ) { @@ -210,6 +210,7 @@ check_wsock2 ( struct SessionHandle *data ) return CURLE_OK; } #endif + static CURLcode init_telnet(struct connectdata *conn) { @@ -1090,7 +1091,7 @@ CURLcode Curl_telnet(struct connectdata *conn, bool *done) CURLcode code; struct SessionHandle *data = conn->data; curl_socket_t sockfd = conn->sock[FIRSTSOCKET]; -#ifdef WIN32 +#ifdef USE_WINSOCK HMODULE wsock2; WSOCK2_FUNC close_event_func; WSOCK2_FUNC create_event_func; @@ -1125,7 +1126,7 @@ CURLcode Curl_telnet(struct connectdata *conn, bool *done) if(code) return code; -#ifdef WIN32 +#ifdef USE_WINSOCK /* ** This functionality only works with WinSock >= 2.0. So, ** make sure have it. |