From 2cb7e44a1bd86b4a43e7fa777acd8a5d21798d9a Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Fri, 5 Jan 2024 17:46:49 +0100 Subject: [PATCH] Fix compilation of syscall unit for Linux with -dFPC_USE_LIBC option --- rtl/unix/syscall.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rtl/unix/syscall.pp b/rtl/unix/syscall.pp index 8d2a4d7cce..02d4bdfccd 100644 --- a/rtl/unix/syscall.pp +++ b/rtl/unix/syscall.pp @@ -2,6 +2,12 @@ unit syscall; {$ENDIF FPC_DOTTEDUNITS} +{$ifdef LINUX} + {$ifdef FPC_USE_LIBC} + {$mode objfpc} + {$endif} +{$endif} + interface {$define FPC_USE_SYSCALL}