Fixup Windows build after strerr changes
This commit is contained in:
+5
-1
@@ -44,8 +44,8 @@
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
#undef _GNU_SOURCE
|
||||
#include <string.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
|
||||
#include "isc/string.h" // IWYU pragma: keep
|
||||
|
||||
@@ -109,5 +109,9 @@ isc_string_strlcat(char *dst, const char *src, size_t size)
|
||||
|
||||
int
|
||||
isc_string_strerror_r(int errnum, char *buf, size_t buflen) {
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
return (strerror_s(buf, buflen, errnum));
|
||||
#else
|
||||
return (strerror_r(errnum, buf, buflen));
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user