This code doesn't work on FreeBSD. With some small changes it can be made to work on FreeBSD.
In config.h, it needs to check for FreeBSD and then define HAVE_LIBUTIL_H 1
#elif defined(FreeBSD)
#define HAVE_LIBUTIL_H 1
Then at line 799 of master.c it needs to change the condition to
#if !defined(HAVE_PTY_H) && !defined(HAVE_UTIL_H) && !defined(HAVE_LIBUTIL_H)
After making these changes, it worked
This code doesn't work on FreeBSD. With some small changes it can be made to work on FreeBSD.
In config.h, it needs to check for FreeBSD and then define HAVE_LIBUTIL_H 1
#elif defined(FreeBSD)
#define HAVE_LIBUTIL_H 1
Then at line 799 of master.c it needs to change the condition to
#if !defined(HAVE_PTY_H) && !defined(HAVE_UTIL_H) && !defined(HAVE_LIBUTIL_H)
After making these changes, it worked