浏览代码

NetBSD getcwd system call also returns string length

git-svn-id: trunk@25661 -
pierre 12 年之前
父节点
当前提交
8a0dccf590
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/bsd/ossysc.inc

+ 1 - 1
rtl/bsd/ossysc.inc

@@ -572,7 +572,7 @@ begin
                End;
            End
       end
-{$ifdef openbsd}
+{$if defined(openbsd) or defined (netbsd)}
    { At least for openbsd, a positive return value is
      the length of the returned pchar }
    else if (ret<0) then