Browse Source

FIX: _SC_NPROCESSORS_ONLN constant value (Linux)

Alexander Koblov 3 months ago
parent
commit
53f2fb6bc5
2 changed files with 2 additions and 2 deletions
  1. 1 1
      components/doublecmd/dcunix.pas
  2. 1 1
      components/multithreadprocs/mtpcpu.pas

+ 1 - 1
components/doublecmd/dcunix.pas

@@ -41,7 +41,7 @@ const
   FD_CLOEXEC = 1;
   O_CLOEXEC  = &02000000;
   O_PATH     = &010000000;
-  _SC_NPROCESSORS_ONLN = 83;
+  _SC_NPROCESSORS_ONLN = 84;
 {$ELSEIF DEFINED(FREEBSD)}
   O_CLOEXEC  = &04000000;
   _SC_NPROCESSORS_ONLN = 58;

+ 1 - 1
components/multithreadprocs/mtpcpu.pas

@@ -35,7 +35,7 @@ procedure CallLocalProc(AProc, Frame: Pointer; Param1: PtrInt;
 implementation
 
 {$IFDEF Linux}
-const _SC_NPROCESSORS_ONLN = 83;
+const _SC_NPROCESSORS_ONLN = 84;
 function sysconf(i: cint): clong; cdecl; external name 'sysconf';
 {$ENDIF}