* fixes compilation due to neli-ism

+ fixed wrong pthreads declaration for freeBSD

git-svn-id: trunk@4806 -
This commit is contained in:
Almindor 2006-10-05 16:50:49 +00:00
parent 7b9bccf339
commit ec1b8a90a6
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;