aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-17 03:07:06 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-17 03:07:06 +0000
commitfda73382878d98e0a25316b390c1bcb7002dbb55 (patch)
tree27f5e67247eedbb630c477f8e31f1c92ca5b9e1a /include
parentfa361ae75098b9214d6f3412767ab0ed9cae2b82 (diff)
use poll as detected by configure
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89355 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/channel.h7
-rw-r--r--include/asterisk/io.h6
2 files changed, 6 insertions, 7 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index b950883d5..4e61668c5 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -125,11 +125,10 @@ References:
#include "asterisk/abstract_jb.h"
-#include <unistd.h>
-#ifdef POLLCOMPAT
-#include "asterisk/poll-compat.h"
-#else
+#ifdef HAVE_POLL
#include <sys/poll.h>
+#else
+#include "asterisk/poll-compat.h"
#endif
#if defined(__cplusplus) || defined(c_plusplus)
diff --git a/include/asterisk/io.h b/include/asterisk/io.h
index 8752a6d32..247d0de72 100644
--- a/include/asterisk/io.h
+++ b/include/asterisk/io.h
@@ -23,10 +23,10 @@
#ifndef _ASTERISK_IO_H
#define _ASTERISK_IO_H
-#ifdef POLLCOMPAT
-#include "asterisk/poll-compat.h"
-#else
+#ifdef HAVE_POLL
#include <sys/poll.h> /* For POLL* constants */
+#else
+#include "asterisk/poll-compat.h"
#endif
#if defined(__cplusplus) || defined(c_plusplus)