lcore.org gitweb
/
lcore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6313ac6
)
unitfork: getfs was deprecated in fpc 2.6.2, use getfilehandle
author
beware
<beware@bircd.org>
Wed, 1 Oct 2025 22:32:46 +0000
(22:32 +0000)
committer
beware
<beware@bircd.org>
Wed, 1 Oct 2025 22:32:46 +0000
(22:32 +0000)
unitfork.pas
patch
|
blob
|
history
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 FPC_FULLVERSION>=20602}
\r
+ handle := getfilehandle(pidfile);
\r
+ {$else}
\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