Browse Source

Avoid double declaration of seterrno

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

+ 2 - 1
rtl/unix/syscall.pp

@@ -26,8 +26,9 @@ uses
 {$endif FPC_HAS_SETSYSNR_INC}
 
 {$ifdef FPC_USE_LIBC}
+{$if not declared(seterrno)}
 procedure seterrno(err:cint); external name 'FPC_SYS_SETERRNO';
-
+{$endif}
 {$I syscall.inc}
 {$endif}