projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adf462f
)
Fix for WIN32. WIN32 does have 'struct sockaddr_storage', but
author
Gisle Vanem
<gvanem@broadpark.no>
Sun, 13 Nov 2005 13:20:37 +0000
(13:20 +0000)
committer
Gisle Vanem
<gvanem@broadpark.no>
Sun, 13 Nov 2005 13:20:37 +0000
(13:20 +0000)
that's in <winsock2.h>. Hence tftp.c wouldn't compile on WinCE.
lib/tftp.c
patch
|
blob
|
history
diff --git
a/lib/tftp.c
b/lib/tftp.c
index
fbc4e96
..
5170274
100644
(file)
--- 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);