Procházet zdrojové kódy

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

git-svn-id: trunk@48121 -
svenbarth před 4 roky
rodič
revize
efe6b32638
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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}