blob: fb3a8d3eb67c346b32a486c3a3bb3d7bdc2581fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/*
** Copyright 2004, Double Precision Inc.
**
** See COPYING for distribution information.
*/
#include "mail.H"
#include "soxwrap/soxwrap.h"
#include <sys/poll.h>
int mail::account::poll(std::vector<mail::pollfd> &fds, int timeout)
{
int npfd=fds.size();
struct ::pollfd *pfd=npfd == 0 ? NULL: &fds[0];
return ::sox_poll(pfd, npfd, timeout);
}
|