summaryrefslogtreecommitdiffstats
path: root/trinity-base/kcheckpass/files/tdebase-strlcpy.patch
blob: c117154dd11388ba471b779ae2b848c358b35445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/ConfigureChecks.cmake	2023-11-13 20:24:40.136525876 +0300
+++ b/ConfigureChecks.cmake	2023-11-13 20:30:04.069534276 +0300
@@ -23,6 +23,10 @@
 find_package( TQt )
 find_package( TDE )
 
+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 +391,6 @@
 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 )