mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Fix for WIN32. WIN32 does have 'struct sockaddr_storage', but
that's in <winsock2.h>. Hence tftp.c wouldn't compile on WinCE.
This commit is contained in:
parent
adf462fe05
commit
280e4bf4c3
@ -541,7 +541,7 @@ CURLcode Curl_tftp_connect(struct connectdata *conn, bool *done)
|
|||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
/* AF_UNSPEC == 0 (from above calloc) doesn't work on Winsock */
|
/* AF_UNSPEC == 0 (from above calloc) doesn't work on Winsock */
|
||||||
state->local_addr.sa_family = conn->ip_addr->ai_family;
|
((struct sockaddr_in*)&state->local_addr)->sin_family = conn->ip_addr->ai_family;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
tftp_set_timeouts(state);
|
tftp_set_timeouts(state);
|
||||||
|
Loading…
Reference in New Issue
Block a user