summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2023-11-14 08:42:36 +0300
committerormorph <roma251078@mail.ru>2023-11-14 08:57:33 +0300
commita99f7a16ff7034f7c7ef77d7702a6f5bee0e2616 (patch)
treec7927f2469249266995cef2e4c4b635512450de1
parentb965cbac5b21345e9dfc768a7e4f660ffa4aa72f (diff)
downloadtdebase-a99f7a16ff7034f7c7ef77d7702a6f5bee0e2616.tar.gz
tdebase-a99f7a16ff7034f7c7ef77d7702a6f5bee0e2616.zip
Fix strlcat and strlcpy check
Solving the TDE/tde-packaging-gentoo#310 problem. Glibc-2.38 adds new functions strlcat and strlcpy. Signed-off-by: ormorph <roma251078@mail.ru>
-rw-r--r--ConfigureChecks.cmake14
1 files changed, 5 insertions, 9 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 455fcab01..9209fd2fc 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -23,6 +23,11 @@ tde_setup_largefiles( )
find_package( TQt )
find_package( TDE )
+# strlcat and strlcpy check
+check_function_exists( strlcat HAVE_STRLCAT )
+check_symbol_exists( strlcat "string.h" HAVE_STRLCAT_PROTO )
+check_function_exists( strlcpy HAVE_STRLCPY )
+check_symbol_exists( strlcpy "string.h" HAVE_STRLCPY_PROTO )
##### look for the usb.ids file, Its location can be set EG: -DWITH_USBIDS="/opt/share/misc/usb.ids"
@@ -387,15 +392,6 @@ if( BUILD_TDEIOSLAVES OR BUILD_KSYSGUARD )
endif( )
-# strlcat, strlcpy
-if( BUILD_KSYSGUARD OR BUILD_KCHECKPASS )
- check_function_exists( strlcat HAVE_STRLCAT )
- check_symbol_exists( strlcat "string.h" HAVE_STRLCAT_PROTO )
- check_function_exists( strlcpy HAVE_STRLCPY )
- check_symbol_exists( strlcpy "string.h" HAVE_STRLCPY_PROTO )
-endif( )
-
-
# getifaddrs (kcontrol, tdm)
if( BUILD_KCONTROL OR BUILD_TDM )
check_function_exists( getifaddrs HAVE_GETIFADDRS )