Browse Source

Fix compilation of syscall unit for Linux with -dFPC_USE_LIBC option

Pierre Muller 1 year ago
parent
commit
2cb7e44a1b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      rtl/unix/syscall.pp

+ 6 - 0
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}