diff options
author | Max Kellermann <max@duempel.org> | 2013-09-04 16:54:39 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-04 16:54:52 +0200 |
commit | b691d3123b36366650a5f72839430fc0aea258de (patch) | |
tree | 25a72234ed48140fe265555e536ade14d347a0a0 | |
parent | f68e36f8c2cbfe28b54427c8693e22f5371ce450 (diff) | |
download | mpd-b691d3123b36366650a5f72839430fc0aea258de.tar.gz mpd-b691d3123b36366650a5f72839430fc0aea258de.tar.xz mpd-b691d3123b36366650a5f72839430fc0aea258de.zip |
IOThread: pass GError to FatalError()
Fixes build failure on GLib < 2.32.
Diffstat (limited to '')
-rw-r--r-- | src/IOThread.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/IOThread.cxx b/src/IOThread.cxx index f615b0491..dbe206af7 100644 --- a/src/IOThread.cxx +++ b/src/IOThread.cxx @@ -22,6 +22,7 @@ #include "thread/Mutex.hxx" #include "thread/Cond.hxx" #include "event/Loop.hxx" +#include "system/FatalError.hxx" #include <glib.h> @@ -76,9 +77,10 @@ io_thread_start() #if GLIB_CHECK_VERSION(2,32,0) io.thread = g_thread_new("io", io_thread_func, nullptr); #else - io.thread = g_thread_create(io_thread_func, NULL, true, error_r); + GError *error = nullptr; + io.thread = g_thread_create(io_thread_func, NULL, true, &error); if (io.thread == NULL) - FatalError(); + FatalError(error); #endif } |