version for netbsd-1.2, from Christos Zoulas