From 777844ae0c0c24720efc1288bb20f12b191e5bdf Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 15 Dec 2013 18:30:25 +0100 Subject: system/SocketError, ...: use strerror() instead of g_strerror() Avoid GLib. --- src/util/Error.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/util/Error.cxx') diff --git a/src/util/Error.cxx b/src/util/Error.cxx index 5675f4d81..99695f0d1 100644 --- a/src/util/Error.cxx +++ b/src/util/Error.cxx @@ -21,11 +21,14 @@ #include "Error.hxx" #include "Domain.hxx" +#ifdef WIN32 #include +#endif #include #include #include +#include const Domain errno_domain("errno"); @@ -70,7 +73,7 @@ Error::FormatPrefix(const char *fmt, ...) void Error::SetErrno(int e) { - Set(errno_domain, e, g_strerror(e)); + Set(errno_domain, e, strerror(e)); } void @@ -82,7 +85,7 @@ Error::SetErrno() void Error::SetErrno(int e, const char *prefix) { - Format(errno_domain, e, "%s: %s", prefix, g_strerror(e)); + Format(errno_domain, e, "%s: %s", prefix, strerror(e)); } void -- cgit v1.2.3