diff --git a/include/libbb.h b/include/libbb.h index dad6fc687..cb6336474 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -106,7 +106,11 @@ # define updwtmpx updwtmp # define _PATH_UTMPX _PATH_UTMP # else -# include +# if !defined(__FreeBSD__) +# include +# else +# define _PATH_UTMPX "/var/run/utx.active" +# endif # include # if defined _PATH_UTMP && !defined _PATH_UTMPX # define _PATH_UTMPX _PATH_UTMP