Browse Source

NetBSD getcwd system call also returns string length

git-svn-id: trunk@25661 -
pierre 12 years ago
parent
commit
8a0dccf590
1 changed files with 1 additions and 1 deletions
  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