mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 08:29:32 +01:00
* fixes sysctl also with 3.0.4 as starting compiler.
M rtl/bsd/sysctl.pp M compiler/systems.pas git-svn-id: trunk@38250 -
This commit is contained in:
parent
81044b4cff
commit
14b14f3bda
@ -472,7 +472,7 @@ function GetOSRelDate:Longint;
|
||||
both old 3.0.X definition and new definition using pcint type.
|
||||
Problem solved using a special type called
|
||||
FPSysCtlFirstArgType. }
|
||||
{$ifdef VER3_0}
|
||||
{$if defined(VER3_0_0) or defined(VER3_0_2)}
|
||||
type
|
||||
FPSysCtlFirstArgType = PChar;
|
||||
{$else}
|
||||
|
||||
@ -109,7 +109,7 @@ Uses Syscall;
|
||||
CONST syscall_nr___sysctl = 202;
|
||||
{$endif}
|
||||
|
||||
{$ifdef ver3_0}
|
||||
{$if defined(VER3_0_0) or defined(VER3_0_2)}
|
||||
function FPsysctl (Name: pchar; namelen:cuint; oldp:pointer;oldlenp:psize_t; newp:pointer;newlen:size_t):cint;
|
||||
{$else}
|
||||
function FPsysctl (Name: pcint; namelen:cuint; oldp:pointer;oldlenp:psize_t; newp:pointer;newlen:size_t):cint;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user