Thomas Klausner wrote:
math/octave-forge tech-pkg%NetBSD.org@localhostcreadpdb.cc: In function `octave_value_list Fcreadpdb(const octave_value_list&, int)': creadpdb.cc:242: error: `close' undeclared (first use this function) creadpdb.cc:242: error: (Each undeclared identifier is reported only once for each function it appears in.) gmake[2]: *** [creadpdb.oct] Error 1
Fixed by adding #include <unistd.h>.
net/unison-devel tech-pkg%NetBSD.org@localhost/tmp/bulktmp/net/unison-devel/work/unison-2.13.0/pty.c: In function `c_openpty': /tmp/bulktmp/net/unison-devel/work/unison-2.13.0/pty.c:45: parse error before `pair' /tmp/bulktmp/net/unison-devel/work/unison-2.13.0/pty.c:46: `pair' undeclared (first use in this function) /tmp/bulktmp/net/unison-devel/work/unison-2.13.0/pty.c:46: (Each undeclared identifier is reported only once /tmp/bulktmp/net/unison-devel/work/unison-2.13.0/pty.c:46: for each function it appears in.) /tmp/bulktmp/net/unison-devel/work/unison-2.13.0/pty.c:49: warning: control reaches end of non-void function
Fixed by putting the declarations above the code, as usual. Roland