mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 01:29:29 +02:00
* fixes compilation due to neli-ism
+ fixed wrong pthreads declaration for freeBSD git-svn-id: trunk@4806 -
This commit is contained in:
parent
7b9bccf339
commit
ec1b8a90a6
@ -439,7 +439,7 @@ Begin
|
||||
mib[1] := KERN_OSRELDATE;
|
||||
len := 4;
|
||||
oerrno:= fpgeterrno;
|
||||
if (FPsysctl(@mib, 2, pchar(@v), @len, NIL, 0) = -1) Then
|
||||
if (FPsysctl(pChar(@mib), 2, pchar(@v), @len, NIL, 0) = -1) Then
|
||||
Begin
|
||||
if (fpgeterrno = ESysENOMEM) Then
|
||||
fpseterrno(oerrno);
|
||||
|
@ -44,7 +44,7 @@ CONST PTHREAD_EXPLICIT_SCHED = 0;
|
||||
function pthread_getspecific (t : pthread_key_t):pointer; cdecl; external;
|
||||
function pthread_setspecific (t : pthread_key_t;p:pointer):cint; cdecl; external;
|
||||
function pthread_key_create (p : ppthread_key_t;f: __destr_func_t):cint; cdecl;external;
|
||||
function pthread_attr_init (p : ppthread_key_t):cint; cdecl; external;
|
||||
function pthread_attr_init (p : ppthread_attr_t):cint; cdecl; external;
|
||||
function pthread_attr_setinheritsched(p : ppthread_attr_t;i:cint):cint; cdecl; external;
|
||||
function pthread_attr_setscope (p : ppthread_attr_t;i:cint):cint;cdecl;external;
|
||||
function pthread_attr_setdetachstate (p : ppthread_attr_t;i:cint):cint;cdecl;external;
|
||||
|
Loading…
Reference in New Issue
Block a user