Skip to content
Snippets Groups Projects
Commit 280e4bf4 authored by Gisle Vanem's avatar Gisle Vanem
Browse files

Fix for WIN32. WIN32 does have 'struct sockaddr_storage', but

that's in <winsock2.h>. Hence tftp.c wouldn't compile on WinCE.
parent adf462fe
No related branches found
No related tags found
No related merge requests found
......@@ -541,7 +541,7 @@ CURLcode Curl_tftp_connect(struct connectdata *conn, bool *done)
#ifdef WIN32
/* 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
tftp_set_timeouts(state);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment