[pulseaudio-commits] r1939 - /branches/lennart/src/tests/rtpoll-test.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Oct 7 06:57:35 PDT 2007


Author: lennart
Date: Sun Oct  7 15:57:35 2007
New Revision: 1939

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1939&root=pulseaudio&view=rev
Log:
add missing poll.h inclusion

Modified:
    branches/lennart/src/tests/rtpoll-test.c

Modified: branches/lennart/src/tests/rtpoll-test.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/tests/rtpoll-test.c?rev=1939&root=pulseaudio&r1=1938&r2=1939&view=diff
==============================================================================
--- branches/lennart/src/tests/rtpoll-test.c (original)
+++ branches/lennart/src/tests/rtpoll-test.c Sun Oct  7 15:57:35 2007
@@ -24,6 +24,7 @@
 #endif
 
 #include <signal.h>
+#include <poll.h>
 
 #include <pulsecore/log.h>
 #include <pulsecore/rtpoll.h>
@@ -49,7 +50,7 @@
     struct pollfd *pollfd;
 
     pa_rtsig_configure(SIGRTMIN+10, SIGRTMAX);
-    
+
     p = pa_rtpoll_new();
 
     i = pa_rtpoll_item_new(p, PA_RTPOLL_EARLY, 1);
@@ -62,14 +63,14 @@
 
     w = pa_rtpoll_item_new(p, PA_RTPOLL_NORMAL, 0);
     pa_rtpoll_item_set_before_callback(w, worker);
-    
+
     pa_rtpoll_install(p);
     pa_rtpoll_set_timer_periodic(p, 10000000); /* 10 s */
 
     pa_rtpoll_run(p, 1);
-    
+
     pa_rtpoll_item_free(i);
-    
+
     i = pa_rtpoll_item_new(p, PA_RTPOLL_EARLY, 1);
     pa_rtpoll_item_set_before_callback(i, before);
     pa_rtpoll_item_set_after_callback(i, after);
@@ -77,13 +78,13 @@
     pollfd = pa_rtpoll_item_get_pollfd(i, NULL);
     pollfd->fd = 0;
     pollfd->events = POLLIN;
-    
+
     pa_rtpoll_run(p, 1);
 
     pa_rtpoll_item_free(i);
 
     pa_rtpoll_item_free(w);
-    
+
     pa_rtpoll_free(p);
 
     return 0;




More information about the pulseaudio-commits mailing list