瀏覽代碼

+ add declaration of FpSchedGetAffinity when the Linux target is compiled with FPC_USE_LIBC

git-svn-id: trunk@48121 -
svenbarth 4 年之前
父節點
當前提交
efe6b32638
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      rtl/unix/oscdeclh.inc

+ 3 - 1
rtl/unix/oscdeclh.inc

@@ -180,4 +180,6 @@ const
 {$endif}
     function  FpTime       (tloc:ptime_t): time_t; cdecl; external clib name 'time';
 
-
+{$if defined(linux)}
+    function  FpSchedGetAffinity(pid : pid_t;cpusetsize : size_t;mask : pcpu_set_t) : cint; cdecl; external clib name 'sched_getaffinity';
+{$endif}