summary refs log tree commit diff
diff options
context:
space:
mode:
authorC. McEnroe2020-02-11 03:45:26 -0500
committerC. McEnroe2020-02-11 03:45:26 -0500
commitd91f588288f22acf20736e03c22a51c2521ec89d (patch)
tree24cc5fb09adc4d03141fea2fcf3732b9ebf41e6f
parent2404e15e72dcf12395f914bc933faeaaa6e8be33 (diff)
Declare strlcat
-rw-r--r--chat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chat.h b/chat.h
index f47b244..829dd1d 100644
--- a/chat.h
+++ b/chat.h
@@ -239,3 +239,6 @@ static inline void base64(char *dst, const byte *src, size_t len) {
 
 // Defined in libcrypto if missing from libc:
 void explicit_bzero(void *b, size_t len);
+#ifndef strlcat
+size_t strlcat(char *restrict dst, const char *restrict src, size_t dstsize);
+#endif