Fixup Windows build after strerr changes

This commit is contained in:
Ondřej Surý
2018-08-29 21:21:52 +02:00
parent 7d44cc2422
commit aa3e33575d
9 changed files with 10 additions and 19 deletions
+5 -1
View File
@@ -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
}