Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 678627db authored by Stephen Hurd's avatar Stephen Hurd

Use the crappy strerror() wrapper for all _WIN32 that's not MSC,

not just for Borland.
parent 0780f586
......@@ -877,7 +877,7 @@ char* safe_strerror(int errnum, char *buf, size_t buflen)
#if defined(_MSC_VER)
strerror_s(buf, buflen, errnum);
#elif defined(__BORLANDC__)
#elif defined(_WIN32)
strncpy(buf, strerror(errnum), buflen);
buf[buflen - 1] = 0;
#elif defined(_GNU_SOURCE)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment