aboutsummaryrefslogtreecommitdiff
path: root/x11-fm/doublecmd/files
diff options
context:
space:
mode:
authorMikael Urankar <mikael@FreeBSD.org>2020-11-29 10:42:29 +0000
committerMikael Urankar <mikael@FreeBSD.org>2020-11-29 10:42:29 +0000
commitcd70251b8c6da04f90b8773d710703acae3973c1 (patch)
treeb1c5d95e286fd9b3e3574833d845ce1efa7dcb9b /x11-fm/doublecmd/files
parentf5f6df82b84d4213be0fd8c1e669fc350124a863 (diff)
downloadports-cd70251b8c6da04f90b8773d710703acae3973c1.tar.gz
ports-cd70251b8c6da04f90b8773d710703acae3973c1.zip
Notes
Diffstat (limited to 'x11-fm/doublecmd/files')
-rw-r--r--x11-fm/doublecmd/files/patch-components_multithreadprocs_mtpcpu.pas22
1 files changed, 22 insertions, 0 deletions
diff --git a/x11-fm/doublecmd/files/patch-components_multithreadprocs_mtpcpu.pas b/x11-fm/doublecmd/files/patch-components_multithreadprocs_mtpcpu.pas
new file mode 100644
index 000000000000..db3dc06a4aba
--- /dev/null
+++ b/x11-fm/doublecmd/files/patch-components_multithreadprocs_mtpcpu.pas
@@ -0,0 +1,22 @@
+--- components/multithreadprocs/mtpcpu.pas.orig 2015-09-06 12:19:32 UTC
++++ components/multithreadprocs/mtpcpu.pas
+@@ -69,15 +69,17 @@ end;
+ t = sysconf(_SC_NPROC_ONLN);
+ end;
+ {$ELSEIF defined(freebsd) or defined(darwin)}
++type
++ PSysCtl = {$IF FPC_FULLVERSION>=30200}pcint{$ELSE}pchar{$ENDIF};
+ var
+ mib: array[0..1] of cint;
+- len: cint;
++ len: csize_t;
+ t: cint;
+ begin
+ mib[0] := CTL_HW;
+ mib[1] := HW_NCPU;
+ len := sizeof(t);
+- fpsysctl(pchar(@mib), 2, @t, @len, Nil, 0);
++ fpsysctl(PSysCtl(@mib), 2, @t, @len, Nil, 0);
+ Result:=t;
+ end;
+ {$ELSEIF defined(linux)}