瀏覽代碼

Fix compilation of syscall unit for Linux with -dFPC_USE_LIBC option

Pierre Muller 1 年之前
父節點
當前提交
2cb7e44a1b
共有 1 個文件被更改,包括 6 次插入0 次删除
  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}