summaryrefslogtreecommitdiffstats
path: root/polyp/mainloop.c
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-01-05 20:56:17 +0000
committerPierre Ossman <ossman@cendio.se>2006-01-05 20:56:17 +0000
commit29a5b850a7d8e9c4fc878afae336e16cba0c6c25 (patch)
tree1819dd616088908d3a234a3107408ae668c836c5 /polyp/mainloop.c
parentd3bc7b27b7b0da1a8d9de2cd93ac10096b6b0b17 (diff)
Emulate poll() through select() where needed.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@397 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/mainloop.c')
-rw-r--r--polyp/mainloop.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/polyp/mainloop.c b/polyp/mainloop.c
index a0d27827..90243bdf 100644
--- a/polyp/mainloop.c
+++ b/polyp/mainloop.c
@@ -26,13 +26,18 @@
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
-#include <sys/poll.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <fcntl.h>
#include <errno.h>
+#ifdef HAVE_SYS_POLL_H
+#include <sys/poll.h>
+#else
+#include "poll.h"
+#endif
+
#include "mainloop.h"
#include "util.h"
#include "idxset.h"