aboutsummaryrefslogtreecommitdiffstats
path: root/src/server_socket.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-19 20:40:33 +0200
committerMax Kellermann <max@duempel.org>2011-09-20 08:35:25 +0200
commitb03f9ece05c6f9a6410da48ec024f9d6bed0dc82 (patch)
tree93a4e566fd407330c039b958ab819d7a3916f6cc /src/server_socket.c
parent1d8840412fc1dd76a73ee13413cd7fc9a6ff229a (diff)
downloadmpd-b03f9ece05c6f9a6410da48ec024f9d6bed0dc82.tar.gz
mpd-b03f9ece05c6f9a6410da48ec024f9d6bed0dc82.tar.xz
mpd-b03f9ece05c6f9a6410da48ec024f9d6bed0dc82.zip
glib_socket.h: wrap g_io_channel_*_new() calls portably
The server_socket library (used by the httpd output plugin) didn't check for WIN32, that's fixed now.
Diffstat (limited to 'src/server_socket.c')
-rw-r--r--src/server_socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server_socket.c b/src/server_socket.c
index bb7a6f097..c10740676 100644
--- a/src/server_socket.c
+++ b/src/server_socket.c
@@ -22,6 +22,7 @@
#include "socket_util.h"
#include "fd_util.h"
#include "glib_compat.h"
+#include "glib_socket.h"
#include <sys/types.h>
#include <sys/stat.h>
@@ -218,7 +219,7 @@ server_socket_open(struct server_socket *ss, GError **error_r)
/* register in the GLib main loop */
- GIOChannel *channel = g_io_channel_unix_new(s->fd);
+ GIOChannel *channel = g_io_channel_new_socket(s->fd);
s->source_id = g_io_add_watch(channel, G_IO_IN,
server_socket_in_event, s);
g_io_channel_unref(channel);