diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2005-11-13 13:20:37 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2005-11-13 13:20:37 +0000 |
commit | 280e4bf4c3d0c509cf979dbb900b3807de5f2d39 (patch) | |
tree | 9888d2b55b48ee74d4a5f2067de2653a9ee03eb0 | |
parent | adf462fe0508e7229bcfabfd8ae7012aa57e5066 (diff) |
Fix for WIN32. WIN32 does have 'struct sockaddr_storage', but
that's in <winsock2.h>. Hence tftp.c wouldn't compile on WinCE.
-rw-r--r-- | lib/tftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tftp.c b/lib/tftp.c index fbc4e9690..51702740a 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -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); |