Browse Source

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

git-svn-id: trunk@48121 -
svenbarth 4 years ago
parent
commit
efe6b32638
1 changed files with 3 additions and 1 deletions
  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}