mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 11:30:25 +02:00
* Use recent libc __errno function for OpenBSD
git-svn-id: trunk@19447 -
This commit is contained in:
parent
929342aaf0
commit
ad40c306cd
@ -31,7 +31,7 @@ implementation
|
||||
// this idea works out.
|
||||
|
||||
{$ifdef OpenBSD}
|
||||
{$define UseOldErrnoDirectLink}
|
||||
{define UseOldErrnoDirectLink OpenBSD also uses __errno function }
|
||||
{$endif}
|
||||
|
||||
{$ifdef UseOldErrnoDirectLink}
|
||||
@ -59,6 +59,10 @@ function geterrnolocation: pcint; cdecl;external clib name '__errno_location';
|
||||
function geterrnolocation: pcint; cdecl;external clib name '__error';
|
||||
{$endif}
|
||||
|
||||
{$ifdef OpenBSD} // tested on x86
|
||||
function geterrnolocation: pcint; cdecl;external clib name '__errno';
|
||||
{$endif}
|
||||
|
||||
{$ifdef NetBSD} // from a sparc dump.
|
||||
function geterrnolocation: pcint; cdecl;external clib name '__errno';
|
||||
{$endif}
|
||||
|
Loading…
Reference in New Issue
Block a user