If you are using the Makefile, and you need a strict BSD-style system, e.g. for MacOS, note that there is an error in the comments at the front of the Makefile file.
Where it says:
# If you want strict BSD ioctls used (which seems to be the case # for Suns and MacOS) add -D__STRICT_BSD___ to the ....
it should be:
# If you want strict BSD ioctls used (which seems to be the case # for Suns and MacOS) add -D__STRICT_BSD__ to the ....
(there are too many `_' at the end of the string.
Thanks to Matthis Rouch for pointing this out.
Jim