system/SocketError, ...: use strerror() instead of g_strerror()

Avoid GLib.
This commit is contained in:
Max Kellermann
2013-12-15 18:30:25 +01:00
parent a10a4ad900
commit 777844ae0c
4 changed files with 14 additions and 9 deletions

View File

@@ -21,7 +21,7 @@
#include "SocketError.hxx"
#include "util/Domain.hxx"
#include <glib.h>
#include <string.h>
const Domain socket_domain("socket");
@@ -41,6 +41,6 @@ SocketErrorMessage::SocketErrorMessage(socket_error_t code)
#else
SocketErrorMessage::SocketErrorMessage(socket_error_t code)
:msg(g_strerror(code)) {}
:msg(strerror(code)) {}
#endif