aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-05-26 01:20:54 +0200
committerJelmer Vernooij <jelmer@samba.org>2006-05-26 01:20:54 +0200
commit574af7e01a0cc738b4bbe7e903572943a85b9691 (patch)
tree5cb2e5c58d7b0c8e77c4768d93063a14355661dc /irc.c
parent5d9b79251c54a73a8a79b2b2aa185e8516d0b402 (diff)
Require GLib 2
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/irc.c b/irc.c
index fb85de62..db9f7aad 100644
--- a/irc.c
+++ b/irc.c
@@ -54,13 +54,9 @@ irc_t *irc_new( int fd )
irc->fd = fd;
irc->io_channel = g_io_channel_unix_new( fd );
-#ifdef GLIB2
g_io_channel_set_encoding (irc->io_channel, NULL, NULL);
g_io_channel_set_buffered (irc->io_channel, FALSE);
g_io_channel_set_flags( irc->io_channel, G_IO_FLAG_NONBLOCK, NULL );
-#else
- fcntl( irc->fd, F_SETFL, O_NONBLOCK);
-#endif
irc->r_watch_source_id = g_io_add_watch( irc->io_channel, G_IO_IN | G_IO_ERR | G_IO_HUP, bitlbee_io_current_client_read, irc );
irc->status = USTATUS_OFFLINE;