Explorar o código

Fix compilation of syscall unit for Linux with -dFPC_USE_LIBC option

Pierre Muller hai 1 ano
pai
achega
2cb7e44a1b
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      rtl/unix/syscall.pp

+ 6 - 0
rtl/unix/syscall.pp

@@ -2,6 +2,12 @@
 unit syscall;
 unit syscall;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
 
 
+{$ifdef LINUX}
+  {$ifdef FPC_USE_LIBC}
+    {$mode objfpc}
+  {$endif}
+{$endif}
+
 interface
 interface
 {$define FPC_USE_SYSCALL}
 {$define FPC_USE_SYSCALL}