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

@@ -23,12 +23,15 @@
#include "util/Domain.hxx"
#include "LogV.hxx"
#ifdef WIN32
#include <glib.h>
#endif
#include <unistd.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#include <windows.h>
@@ -88,7 +91,7 @@ FatalSystemError(const char *msg)
#ifdef WIN32
system_error = g_win32_error_message(GetLastError());
#else
system_error = g_strerror(errno);
system_error = strerror(errno);
#endif
FormatError(fatal_error_domain, "%s: %s", msg, system_error);