lcore.org gitweb
/
lcore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make a minor change per information from anders to allow build with current
[lcore.git]
/
lsocket.pas
diff --git
a/lsocket.pas
b/lsocket.pas
index 53205e6b92079919809831a2833a12018e50c9c1..7f610928d1d173ca24f164bc13d199f04b98df5f 100755
(executable)
--- a/
lsocket.pas
+++ b/
lsocket.pas
@@
-132,7
+132,9
@@
type
//this one has to be kept public for now because lcorewsaasyncselect calls it
\r
procedure connectionfailedhandler(error:word);
\r
private
\r
//this one has to be kept public for now because lcorewsaasyncselect calls it
\r
procedure connectionfailedhandler(error:word);
\r
private
\r
- isv6socket : boolean; //identifies if the socket is v6, set by bindsocket
\r
+ {$ifdef ipv6}
\r
+ isv6socket : boolean; //identifies if the socket is v6, set by bindsocket
\r
+ {$endif}
\r
procedure taskcallconnectionfailedhandler(wparam,lparam : longint);
\r
\r
procedure connecttimeouthandler(sender:tobject);
\r
procedure taskcallconnectionfailedhandler(wparam,lparam : longint);
\r
\r
procedure connecttimeouthandler(sender:tobject);
\r
@@
-352,7
+354,9
@@
begin
end;
\r
//gethostbyname(localaddr,host);
\r
inaddrtempsize := makeinaddrv(forwardlookup(localaddr,0),localport,inaddrtemp);
\r
end;
\r
//gethostbyname(localaddr,host);
\r
inaddrtempsize := makeinaddrv(forwardlookup(localaddr,0),localport,inaddrtemp);
\r
- isv6socket := (inaddrtemp.inaddr.family = AF_INET6);
\r
+ {$ifdef ipv6}
\r
+ isv6socket := (inaddrtemp.inaddr.family = AF_INET6);
\r
+ {$endif}
\r
If Bind(fdhandlein,inaddrtempx,inaddrtempsize)<> {$ifdef win32}0{$else}true{$endif} Then begin
\r
state := wsclosed;
\r
lasterror := {$ifdef win32}getlasterror{$else}socketerror{$endif};
\r
If Bind(fdhandlein,inaddrtempx,inaddrtempsize)<> {$ifdef win32}0{$else}true{$endif} Then begin
\r
state := wsclosed;
\r
lasterror := {$ifdef win32}getlasterror{$else}socketerror{$endif};
\r