I started to work on unworkable (oh the irony), and besides the Makefile tweak (not to mention stuff which very looks like embedded libbsd copies), I'm hitting a redefinition of yy* stuff in the parser, probably just a matter of the right defines/includes to check, but it's way past bedtime, so someone may want to have a look and submit a complete patch.
It compiles fine for me, it only warns about undeclared flock(). What have been your yacc, i.e output of command: $ ls -l /usr/bin/yacc /etc/alternatives/yacc lrwxr-xr-x 1 root root 22 Aug 6 04:25 /usr/bin/yacc -> /etc/alternatives/yacc lrwxr-xr-x 1 root root 19 Aug 6 04:25 /etc/alternatives/yacc -> /usr/bin/bison.yacc The enhanced patch is on its own way into BTS. Petr