lcore.org gitweb
/
lcore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unitfork: getfs was deprecated in fpc 2.6.2, use getfilehandle
[lcore.git]
/
unitfork.pas
diff --git
a/unitfork.pas
b/unitfork.pas
index 3bcb3b1c3a408abfe325d7b9d750ae54c033a952..9e8503fbe576936203992b0bdf660655e775b6cf 100644
(file)
--- a/
unitfork.pas
+++ b/
unitfork.pas
@@
-65,7
+65,11
@@
begin
if ioresult <> 0 then exit;
\r
end;
\r
\r
if ioresult <> 0 then exit;
\r
end;
\r
\r
+ {$IF FPC_FULLVERSION>=20602}
\r
+ handle := getfilehandle(pidfile);
\r
+ {$else}
\r
handle := getfs(pidfile);
\r
handle := getfs(pidfile);
\r
+ {$endif}
\r
\r
//debugout('got handle');
\r
{check if locking is possible: it's not if other process still runs}
\r
\r
//debugout('got handle');
\r
{check if locking is possible: it's not if other process still runs}
\r