mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +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)
|
||||
endif (login_in_libutil)
|
||||
endif (NOT login_in_libc)
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "(Linux|GNU|FreeBSD)")
|
||||
set (HAVE_UTMPX)
|
||||
else ()
|
||||
check_function_exists(getutxent HAVE_UTMPX)
|
||||
endif ()
|
||||
check_function_exists(setutxent HAVE_UTMPX)
|
||||
if (HAVE_UTMPX)
|
||||
set(utmp utmpx)
|
||||
if (login_in_libutil)
|
||||
|
|
Loading…
Add table
Reference in a new issue