1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: fix ftbfs issue due to ambiguating new declaration on strlcat and strlcpy
Author: Bo YU <tsu.yubo@gmail.com>
Bug: https://bugs.debian.org/1071296
Last-Update: 2024-05-26
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/headers.h
+++ b/src/headers.h
@@ -56,7 +56,7 @@
#define textdomain(x) while(false)
#endif
-#if !defined(OpenBSD) && !defined(FreeBSD) && !defined(__APPLE__)
+#if 0 && !defined(OpenBSD) && !defined(FreeBSD) && !defined(__APPLE__)
static inline void strlcat(char *dest, const char *src, size_t n) { strncat(dest, src, n - 1); }
static inline void strlcpy(char *dest, const char *src, size_t n) { strncpy(dest, src, n); dest[n - 1] = 0; }
#endif
|