summaryrefslogtreecommitdiffstats
path: root/config.h.cmake
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-05-15 15:55:28 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-05-15 15:55:28 +0900
commit26628b93baee1eea9528e9ffb68eb72b9c2d5c6d (patch)
tree90398775d4135bbd13cd980fcee71ae15357cd94 /config.h.cmake
parent1e20731aef7822ed4fed3a5eca0a160d6798fdb3 (diff)
downloadk9copy-26628b93baee1eea9528e9ffb68eb72b9c2d5c6d.tar.gz
k9copy-26628b93baee1eea9528e9ffb68eb72b9c2d5c6d.zip
Use strlcat from libc instead of custom one. This resolves issue #29
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake
index 5a397e7..0b26cdf 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -22,3 +22,15 @@
#cmakedefine ALPHA 1
#cmakedefine PPC 1
#cmakedefine SPARC 1
+
+/* Define strlcat prototype if needed */
+#cmakedefine HAVE_STRLCAT_PROTO
+#if !defined(HAVE_STRLCAT_PROTO)
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+ unsigned long strlcat(char*, const char*, unsigned long);
+ #ifdef __cplusplus
+ }
+ #endif
+#endif