diff options
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index dad6fc6..cb63364 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -106,7 +106,11 @@ # define updwtmpx updwtmp # define _PATH_UTMPX _PATH_UTMP # else -# include <utmp.h> +# if !defined(__FreeBSD__) +# include <utmp.h> +# else +# define _PATH_UTMPX "/var/run/utx.active" +# endif # include <utmpx.h> # if defined _PATH_UTMP && !defined _PATH_UTMPX # define _PATH_UTMPX _PATH_UTMP |