Please sign in to comment.
Fix the non-compiling utmp case, found on OpenBSD.
By not having build-tested with utmp, I made two easy mistakes: (1) In file included from qbiff.c:3: ./qtmp.h:15:5: error: unknown type name 'substdio' substdio ssutmp; \ ^ ./qtmp.h:16:43: error: expected ';' after top level declarator char bufutmp[sizeof(struct utmp) * 16] ^ ; Mistake: missed a trailing backslash on line 14. Fix: add it. (2) qbiff.c:81:2: error: use of undeclared identifier 'fdutmp'; did you mean 'ssutmp'? UTMP_OPEN; ^ ./qtmp.h:20:33: note: expanded from macro 'UTMP_OPEN' substdio_fdbuf(&ssutmp,read,fdutmp,bufutmp,sizeof(bufutmp)) Mistake: tried to get rid of fdutmp by checking open_read() directly, not realizing fdutmp was still needed on the next line (!). Fix: bring back fdutmp. Fixes: 47baf78
- Loading branch information...