aboutsummaryrefslogtreecommitdiffstats
path: root/src/system/FatalError.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-15 18:30:25 +0100
committerMax Kellermann <max@duempel.org>2013-12-15 18:32:07 +0100
commit777844ae0c0c24720efc1288bb20f12b191e5bdf (patch)
tree8120bb3baeb666675c41e5101e84acb81fda4cf6 /src/system/FatalError.cxx
parenta10a4ad90087a21439d08b145f1a8c449c7867de (diff)
downloadmpd-777844ae0c0c24720efc1288bb20f12b191e5bdf.tar.gz
mpd-777844ae0c0c24720efc1288bb20f12b191e5bdf.tar.xz
mpd-777844ae0c0c24720efc1288bb20f12b191e5bdf.zip
system/SocketError, ...: use strerror() instead of g_strerror()
Avoid GLib.
Diffstat (limited to 'src/system/FatalError.cxx')
-rw-r--r--src/system/FatalError.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/system/FatalError.cxx b/src/system/FatalError.cxx
index f02b4b581..11a0944df 100644
--- a/src/system/FatalError.cxx
+++ b/src/system/FatalError.cxx
@@ -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);