mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
generic: do not assume certain systems have utmpx
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
1e401eaa96
commit
76765eee7d
1 changed files with 1 additions and 5 deletions
|
@ -100,11 +100,7 @@ if (UNIX)
|
||||||
set(UTIL_LIBRARY util)
|
set(UTIL_LIBRARY util)
|
||||||
endif (login_in_libutil)
|
endif (login_in_libutil)
|
||||||
endif (NOT login_in_libc)
|
endif (NOT login_in_libc)
|
||||||
if (CMAKE_SYSTEM_NAME MATCHES "(Linux|GNU|FreeBSD)")
|
check_function_exists(setutxent HAVE_UTMPX)
|
||||||
set (HAVE_UTMPX)
|
|
||||||
else ()
|
|
||||||
check_function_exists(getutxent HAVE_UTMPX)
|
|
||||||
endif ()
|
|
||||||
if (HAVE_UTMPX)
|
if (HAVE_UTMPX)
|
||||||
set(utmp utmpx)
|
set(utmp utmpx)
|
||||||
if (login_in_libutil)
|
if (login_in_libutil)
|
||||||
|
|
Loading…
Add table
Reference in a new issue