Fix conditionnal utmpx support in tdm

Signed-off-by: François Andriot <francois.andriot@free.fr>"
pull/2/head
François Andriot 10 years ago committed by Slávek Banko
parent 71fb8e0e11
commit 1651fcb54a

@ -85,7 +85,7 @@ unset( BSD_UTMP )
if( NOT HAVE_UTMPX )
check_function_exists( getutent have_getutent )
if( NOT have_getutent )
set( BSD_UTMP 1 )
set( BSD_UTMP 1 CACHE INTERNAL "" FORCE )
endif( )
endif( )

@ -71,7 +71,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <fcntl.h>
#include <sys/types.h>
#include <utmp.h>
#ifdef HAVE_UTMPX
#include <utmpx.h>
#endif
#include <stdio.h>
#include <string.h>

Loading…
Cancel
Save