Fix for the FEATURE_UTMP on the FreeBSD
No binary (build failed)
—
(log yok)
| @@ -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 | |