summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3dd5a60)
getmem(output.ai_addr,sizeof(tlinetsockaddr4));\r
if servname <> nil then output.ai_addr.InAddr.port := htons(strtoint(servname)) else output.ai_addr.InAddr.port := 0;\r
output.ai_addr.InAddr.addr := longint(addrlist^^);\r
getmem(output.ai_addr,sizeof(tlinetsockaddr4));\r
if servname <> nil then output.ai_addr.InAddr.port := htons(strtoint(servname)) else output.ai_addr.InAddr.port := 0;\r
output.ai_addr.InAddr.addr := longint(addrlist^^);\r
- inc(integer(addrlist),4);\r
+ inc(taddrint(addrlist),4);\r
output.ai_flags := 0;\r
output.ai_family := af_inet;\r
output.ai_socktype := 0;\r
output.ai_flags := 0;\r
output.ai_family := af_inet;\r
output.ai_socktype := 0;\r
{$ifdef i386}\r
taddrint=longint;\r
{$else}\r
{$ifdef i386}\r
taddrint=longint;\r
{$else}\r
+ {$ifdef cpux64}\r
+ taddrint=int64;\r
+ {$else}\r
{$endif}\r
paddrint=^taddrint;\r
\r
{$endif}\r
paddrint=^taddrint;\r
\r