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-16 10:51:12 +0900
commitb6bc7d3ae37a8691a33eae20bb02ecb9bd156ffb (patch)
tree692c676604bf0994f6338937d662b6175a688b50 /config.h.cmake
parent21f900e2b633fcd6044b59e9c429e581eadbe7fc (diff)
downloadk9copy-b6bc7d3ae37a8691a33eae20bb02ecb9bd156ffb.tar.gz
k9copy-b6bc7d3ae37a8691a33eae20bb02ecb9bd156ffb.zip
Use strlcat from libc instead of custom one. This resolves issue #29
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 26628b93baee1eea9528e9ffb68eb72b9c2d5c6d)
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