Changeset 574af7e for irc.c


Ignore:
Timestamp:
2006-05-25T23:20:54Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
79b6213
Parents:
5d9b792
Message:

Require GLib 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r5d9b792 r574af7e  
    5555        irc->fd = fd;
    5656        irc->io_channel = g_io_channel_unix_new( fd );
    57 #ifdef GLIB2
    5857        g_io_channel_set_encoding (irc->io_channel, NULL, NULL);
    5958        g_io_channel_set_buffered (irc->io_channel, FALSE);
    6059        g_io_channel_set_flags( irc->io_channel, G_IO_FLAG_NONBLOCK, NULL );
    61 #else
    62         fcntl( irc->fd, F_SETFL, O_NONBLOCK);
    63 #endif
    6460        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 );
    6561       
Note: See TracChangeset for help on using the changeset viewer.