+6101. [port] Clarify the portability dodge needed for `strerror_r()`
+ [GL !7465]
+
6100. [cleanup] Deprecate <isc/deprecated.h>, because obsolete
functions are now deleted instead of marked with
an attribute. [GL !7466]
#include <isc/string.h> /* IWYU pragma: keep */
+/*
+ * We undef _GNU_SOURCE above to get the POSIX strerror_r()
+ */
+int
+isc_string_strerror_r(int errnum, char *buf, size_t buflen) {
+ return (strerror_r(errnum, buf, buflen));
+}
+
#if !defined(HAVE_STRLCPY)
size_t
strlcpy(char *dst, const char *src, size_t size) {
return ((char *)s);
}
#endif
-
-int
-isc_string_strerror_r(int errnum, char *buf, size_t buflen) {
- return (strerror_r(errnum, buf, buflen));
-}