dtlogin: use utmpx when PAM is enabled.

This commit is contained in:
Liang Chang
2021-01-31 08:31:43 +08:00
committed by Jon Trulson
parent 4f2d356d31
commit 1d287720ad
2 changed files with 11 additions and 11 deletions

View File

@@ -66,7 +66,7 @@
# include <signal.h>
# include <X11/Xatom.h>
# include <setjmp.h>
#if defined(__FreeBSD__) && OSMAJORVERSION > 8
#if defined(__FreeBSD__) && OSMAJORVERSION > 8 || defined(HAS_PAM_LIBRARY)
# include <utmpx.h>
#else
# include <utmp.h>