Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 1448:844410b9b4cc
Remove configure option --enable-fifo
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 27 Mar 2008 23:27:19 +0100 |
parents | 49c8be874344 |
children | 77afd831f8f7 |
comparison
equal
deleted
inserted
replaced
1447:ba706e97d6ec | 1448:844410b9b4cc |
---|---|
32 #include "hbuf.h" | 32 #include "hbuf.h" |
33 #include "histolog.h" | 33 #include "histolog.h" |
34 #include "commands.h" | 34 #include "commands.h" |
35 #include "pgp.h" | 35 #include "pgp.h" |
36 #include "otr.h" | 36 #include "otr.h" |
37 | 37 #include "fifo.h" |
38 #ifdef ENABLE_FIFO | |
39 # include "fifo.h" | |
40 #endif | |
41 | 38 |
42 #define JABBERPORT 5222 | 39 #define JABBERPORT 5222 |
43 #define JABBERSSLPORT 5223 | 40 #define JABBERSSLPORT 5223 |
44 | 41 |
45 #define RECONNECTION_TIMEOUT 60L | 42 #define RECONNECTION_TIMEOUT 60L |
234 fd_set fds; | 231 fd_set fds; |
235 long tmout; | 232 long tmout; |
236 struct timeval tv; | 233 struct timeval tv; |
237 static time_t last_eviqs_check = 0L; | 234 static time_t last_eviqs_check = 0L; |
238 int maxfd = 0; | 235 int maxfd = 0; |
239 #ifdef ENABLE_FIFO | |
240 int fifofd; | 236 int fifofd; |
241 #endif | |
242 | 237 |
243 FD_ZERO(&fds); | 238 FD_ZERO(&fds); |
244 FD_SET(0, &fds); | 239 FD_SET(0, &fds); |
245 if (jc && jc->fd > 0) { | 240 if (jc && jc->fd > 0) { |
246 FD_SET(jc->fd, &fds); | 241 FD_SET(jc->fd, &fds); |
247 maxfd = jc->fd; | 242 maxfd = jc->fd; |
248 } | 243 } |
249 | 244 |
250 #ifdef ENABLE_FIFO | |
251 fifofd = fifo_get_fd(); | 245 fifofd = fifo_get_fd(); |
252 if (fifofd > 0) { | 246 if (fifofd > 0) { |
253 FD_SET(fifofd, &fds); | 247 FD_SET(fifofd, &fds); |
254 maxfd = MAX(maxfd, fifofd); | 248 maxfd = MAX(maxfd, fifofd); |
255 } | 249 } |
256 #endif | |
257 | 250 |
258 tv.tv_sec = 60; | 251 tv.tv_sec = 60; |
259 tv.tv_usec = 0; | 252 tv.tv_usec = 0; |
260 | 253 |
261 if (!online || (jc && jc->state == JCONN_STATE_CONNECTING)) { | 254 if (!online || (jc && jc->state == JCONN_STATE_CONNECTING)) { |