mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-02-04 06:34:52 +01:00
Fix fpgetcwd for openbsd
git-svn-id: trunk@19410 -
This commit is contained in:
parent
902ba04ecd
commit
d1b2e2d439
@ -534,8 +534,15 @@ begin
|
||||
End;
|
||||
End
|
||||
end
|
||||
else
|
||||
pt:=nil;
|
||||
{$ifdef openbsd}
|
||||
{ At least for openbsd, a positive return value is
|
||||
the length of the returned pchar }
|
||||
else if (ret<0) then
|
||||
{$endif openbsd}
|
||||
begin
|
||||
seterrno(-ret);
|
||||
pt:=nil;
|
||||
end;
|
||||
Fpgetcwd:=pt;
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user