libedit/libedit-strlcat.patch

18 lines
486 B
Diff
Raw Normal View History

--- src/sys.h.orig 2021-04-19 15:19:17.000000000 -0600
+++ src/sys.h 2021-04-20 08:26:19.950621433 -0600
@@ -83,12 +83,12 @@ typedef void *ioctl_t;
#include <stdio.h>
#ifndef HAVE_STRLCAT
-//#define strlcat libedit_strlcat
+#define strlcat libedit_strlcat
size_t strlcat(char *dst, const char *src, size_t size);
#endif
#ifndef HAVE_STRLCPY
-//#define strlcpy libedit_strlcpy
+#define strlcpy libedit_strlcpy
size_t strlcpy(char *dst, const char *src, size_t size);
#endif