瀏覽代碼

- removed syscall_nr_getdirentries from the OpenBSD rtl, since this syscall is no longer
supported by OpenBSD and shouldn't be used at all

git-svn-id: trunk@41791 -

nickysn 6 年之前
父節點
當前提交
28bb38cc12
共有 2 個文件被更改,包括 1 次插入7 次删除
  1. 1 6
      rtl/openbsd/setsysnr.inc
  2. 0 1
      rtl/openbsd/sysnr.inc

+ 1 - 6
rtl/openbsd/setsysnr.inc

@@ -62,10 +62,5 @@ Begin
 
 
   version:=version_major * 1000 + version_minor;
   version:=version_major * 1000 + version_minor;
 
 
-  if version >= 5005 then
-    begin
-      { FIXME: what should we do here? }
-      syscall_nr_getdirentries := -1;
-    end;
-
+  { version-specific checks and setting of compatibility flags can be inserted here }
 end;
 end;

+ 0 - 1
rtl/openbsd/sysnr.inc

@@ -255,7 +255,6 @@ Const
 var
 var
   syscall_nr_waitpid : longint = syscall_nr_wait4;  // 7, added: ease of notation purposes
   syscall_nr_waitpid : longint = syscall_nr_wait4;  // 7, added: ease of notation purposes
   
   
-  syscall_nr_getdirentries : longint = {syscall_nr_getdirentries_20}-1;
 { The variables above need to be changed at startup }
 { The variables above need to be changed at startup }
 
 
 {$define FPC_HAS_SETSYSNR_INC}
 {$define FPC_HAS_SETSYSNR_INC}