generic: add comment about ptsname_r() check

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-06-10 22:10:11 +03:00
parent ac36e123ec
commit 6c1ad4ddd2

View file

@ -54,7 +54,6 @@ check_function_exists(fdatasync HAVE_FDATASYNC) # kd
check_function_exists(arc4random_uniform HAVE_ARC4RANDOM_UNIFORM) # kdecore
check_function_exists(sendfile HAVE_SENDFILE) # kioslave
if (UNIX)
# for kpty
check_include_files("sys/types.h;libutil.h" HAVE_LIBUTIL_H)
check_include_files(termio.h HAVE_TERMIO_H)
@ -99,21 +98,19 @@ if (UNIX)
check_library_exists(util openpty "" openpty_in_libutil)
if(openpty_in_libutil)
set(UTIL_LIBRARY util)
endif (openpty_in_libutil)
endif (NOT openpty_in_libc)
endif()
endif()
if (openpty_in_libc OR openpty_in_libutil)
set(HAVE_OPENPTY 1)
else (openpty_in_libc OR openpty_in_libutil)
else()
set(HAVE_OPENPTY 0)
check_function_exists(revoke HAVE_REVOKE)
endif (openpty_in_libc OR openpty_in_libutil)
endif()
check_function_exists(ptsname_r HAVE_PTSNAME_R)
endif (UNIX)
check_function_exists(getmntinfo HAVE_GETMNTINFO) # kdecore, kio
check_function_exists(setmntent HAVE_SETMNTENT) # solid, kio, kdecore
check_function_exists(ptsname_r HAVE_PTSNAME_R) # kpty
check_function_exists(getmntinfo HAVE_GETMNTINFO) # kdecore
check_function_exists(setmntent HAVE_SETMNTENT) # kdecore
# check for existing datatypes