[polypaudio-commits] r739 - /trunk/src/polyp/mainloop.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Apr 18 06:36:31 PDT 2006


Author: ossman
Date: Tue Apr 18 15:36:30 2006
New Revision: 739

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=739&root=polypaudio&view=rev
Log:
Avoid including non-portable header sys/poll.h.

Modified:
    trunk/src/polyp/mainloop.h

Modified: trunk/src/polyp/mainloop.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/mainloop.h?rev=739&root=polypaudio&r1=738&r2=739&view=diff
==============================================================================
--- trunk/src/polyp/mainloop.h (original)
+++ trunk/src/polyp/mainloop.h Tue Apr 18 15:36:30 2006
@@ -26,6 +26,8 @@
 #include <polyp/cdecl.h>
 
 PA_C_DECL_BEGIN
+
+struct pollfd;
 
 /** \page mainloop Main Loop
  *
@@ -69,8 +71,6 @@
  * main loop supporting the generic main loop abstraction layer as
  * defined in \ref mainloop-api.h. This implementation is thread safe
  * as long as you access the main loop object from a single thread only.*/
-
-#include <sys/poll.h>
 
 /** An opaque main loop object */
 typedef struct pa_mainloop pa_mainloop;
@@ -117,7 +117,7 @@
 void pa_mainloop_wakeup(pa_mainloop *m);
 
 /** Generic prototype of a poll() like function */
-typedef int (*pa_poll_func)(struct pollfd *ufds, nfds_t nfds, int timeout, void*userdata);
+typedef int (*pa_poll_func)(struct pollfd *ufds, unsigned long nfds, int timeout, void*userdata);
 
 /** Change the poll() implementation */
 void pa_mainloop_set_poll_func(pa_mainloop *m, pa_poll_func poll_func, void *userdata);




More information about the pulseaudio-commits mailing list