Changeset 3490:170391ca4c93 in roaraudio for libroarpulse
- Timestamp:
- 02/14/10 18:20:35 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarpulse/mainloop.c
r3483 r3490 38 38 39 39 #include <libroarpulse/libroarpulse.h> 40 #ifdef ROAR_HAVE_H_POLL 40 41 #include <poll.h> 42 #endif 41 43 42 44 #define MAX_IO_EVENTS 8 45 46 #ifndef ROAR_HAVE_H_POLL 47 struct pollfd { 48 int fd; 49 short events, revents; 50 }; 51 #endif 43 52 44 53 struct pa_io_event { … … 233 242 ret = m->poll_func(m->pollfd, m->pollfds, m->poll_timeout, m->poll_userdata); 234 243 } else { 244 #ifdef ROAR_HAVE_H_POLL 235 245 ret = poll(m->pollfd, m->pollfds, m->poll_timeout); 246 #else 247 ret = -1; 248 #endif 236 249 } 237 250
Note: See TracChangeset
for help on using the changeset viewer.