瀏覽代碼

* fixes compilation due to neli-ism
+ fixed wrong pthreads declaration for freeBSD

git-svn-id: trunk@4806 -

Almindor 19 年之前
父節點
當前提交
ec1b8a90a6
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      compiler/systems.pas
  2. 1 1
      rtl/freebsd/pthread.inc

+ 1 - 1
compiler/systems.pas

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

+ 1 - 1
rtl/freebsd/pthread.inc

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