From 277d98431c0aa3a72664b639fcc02124bf870a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1roly=20Balogh?= Date: Wed, 9 Sep 2020 15:15:52 +0000 Subject: [PATCH] * linux: use ugetrlimit syscall on m68k for rlimits retrieval. this fixes fpgetrlimit() call, and stack checking on Linux/m68k (tstack.pp test), at least on anything newer than kernel 2.4+ (2001) git-svn-id: trunk@46811 - --- rtl/linux/osdefs.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rtl/linux/osdefs.inc b/rtl/linux/osdefs.inc index 1e114a948e..7b38c2ef48 100644 --- a/rtl/linux/osdefs.inc +++ b/rtl/linux/osdefs.inc @@ -28,9 +28,11 @@ {$endif} {$endif} -{$if defined(cpupowerpc) or defined(cpupowerpc64) or defined(cpui386) or +{$if defined(cpupowerpc) or defined(cpupowerpc64) or + defined(cpui386) or + defined(cpum68k) or (defined(cpuarm) and defined(FPC_ABI_EABI))} - {$DEFINE has_ugetrlimit} + {$define HAS_UGETRLIMIT} {$endif} {$if (defined(cpuarm) and defined(FPC_ABI_EABI))}