include stdlib.h to define NULL; BSD/OS managed to define it in one of the other files already included, but that was not portable. Thanks for pointing these issues out for Linux, Brian.