lcore.org gitweb
/
lcore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed listen breaking on kernel compiled without ipv6
[lcore.git]
/
lcorernd.pas
diff --git
a/lcorernd.pas
b/lcorernd.pas
index 643de3ad3a74848409756e0f33590b02da53699c..3e43bb124b2d6f1dd22869f2940b619c3bd27210 100644
(file)
--- a/
lcorernd.pas
+++ b/
lcorernd.pas
@@
-111,7
+111,7
@@
function randominteger(i:longint):longint;
function randombits(b:integer):longint;
\r
\r
{generate a version 4 random uuid}
\r
function randombits(b:integer):longint;
\r
\r
{generate a version 4 random uuid}
\r
-function generate_uuid:string;
\r
+function generate_uuid:
ansi
string;
\r
\r
{$ifndef nolcorernd}
\r
\r
\r
{$ifndef nolcorernd}
\r
\r
@@
-133,7
+133,13
@@
implementation
{$ifndef nolcorernd}
\r
uses
\r
{$ifdef win32}windows,activex,{$endif}
\r
{$ifndef nolcorernd}
\r
uses
\r
{$ifdef win32}windows,activex,{$endif}
\r
- {$ifdef unix}baseunix,unix,unixutil,{$endif}
\r
+ {$ifdef unix}
\r
+ {$ifdef ver1_0}
\r
+ linux,
\r
+ {$else}
\r
+ baseunix,unix,unixutil,sockets,
\r
+ {$endif}
\r
+ {$endif}
\r
fastmd5,sysutils;
\r
\r
{$ifdef unix}{$include unixstuff.inc}{$endif}
\r
fastmd5,sysutils;
\r
\r
{$ifdef unix}{$include unixstuff.inc}{$endif}
\r
@@
-396,12
+402,12
@@
begin
end;
\r
\r
const
\r
end;
\r
\r
const
\r
- ch:array[0..15] of char='0123456789abcdef';
\r
+ ch:array[0..15] of
ansi
char='0123456789abcdef';
\r
\r
\r
-function generate_uuid:string;
\r
+function generate_uuid:
ansi
string;
\r
var
\r
buf:array[0..7] of word;
\r
var
\r
buf:array[0..7] of word;
\r
-function inttohex(w:word):string;
\r
+function inttohex(w:word):
ansi
string;
\r
begin
\r
result := ch[w shr 12] + ch[(w shr 8) and $f] + ch[(w shr 4) and $f] + ch[w and $f];
\r
end;
\r
begin
\r
result := ch[w shr 12] + ch[(w shr 8) and $f] + ch[(w shr 4) and $f] + ch[w and $f];
\r
end;
\r