- {$ifndef ver1_9_4}
- procedure Execl(Todo:string);inline;
- var
- p : ppchar;
- begin
- p := unixutil.StringToPPChar(Todo,1);
- if (p=nil) or (p^=nil) then exit;
- fpexecv(p^,p);
- end;
- {$endif}
+ {$ifndef ver1_9_4}\r
+ procedure Execl(Todo:string);inline;\r
+ var\r
+ p : ppchar;\r
+ begin\r
+ p := unixutil.StringToPPChar(Todo,1);\r
+ if (p=nil) or (p^=nil) then exit;\r
+ fpexecv(p^,p);\r
+ end;\r
+ {$endif}\r
+ {$endif}\r
+ {$ifdef ver2_0}\r
+ const\r
+ IPPROTO_UDP=17;\r
+ IPPROTO_ICMP=1;\r
+ {$endif}\r
+ {$ifdef ver1_9}\r
+ const\r
+ IPPROTO_UDP=17;\r
+ IPPROTO_ICMP=1;\r
+ function ntohs(invalue:word):word;inline;\r
+ var\r
+ invaluebytes : array[0..1] of byte absolute invalue;\r
+ resultbytes : array[0..1] of byte absolute result;\r
+ begin\r
+ {$ifdef endian_little}\r
+ resultbytes[0] := invaluebytes[1];\r
+ resultbytes[1] := invaluebytes[0];\r
+ {$else}\r
+ result := invalue;\r
+ {$endif}\r
+ end;\r