summaryrefslogtreecommitdiff
path: root/include/arch/unix/apr_arch_poll_private.h
diff options
context:
space:
mode:
authorpquerna <pquerna@13f79535-47bb-0310-9956-ffa450edef68>2004-11-22 05:00:03 +0000
committerpquerna <pquerna@13f79535-47bb-0310-9956-ffa450edef68>2004-11-22 05:00:03 +0000
commit727180e9667c14ddac21e27418230b3992ff1a91 (patch)
treed693156d8106f6a2c60eb88d8d462b327c7b80e9 /include/arch/unix/apr_arch_poll_private.h
parent177561f66d87638acdb4a379993e82c051ef1d45 (diff)
downloadlibapr-727180e9667c14ddac21e27418230b3992ff1a91.tar.gz
Added support for Solaris 10 Event Completion Framework as
a backend to APR Pollset. Best Docs: http://developers.sun.com/solaris/articles/event_completion.html I have only been able to test this on Solaris 10 on x86 with gcc. If anyone could test on Sparc with other compilers that would be great. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@106156 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/arch/unix/apr_arch_poll_private.h')
-rw-r--r--include/arch/unix/apr_arch_poll_private.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/arch/unix/apr_arch_poll_private.h b/include/arch/unix/apr_arch_poll_private.h
index 5a9ee6e6e..c720bb2f1 100644
--- a/include/arch/unix/apr_arch_poll_private.h
+++ b/include/arch/unix/apr_arch_poll_private.h
@@ -31,6 +31,11 @@
#include <sys/poll.h>
#endif
+#ifdef HAVE_PORT_CREATE
+#include <port.h>
+#include <sys/port_impl.h>
+#endif
+
#ifdef HAVE_KQUEUE
#include <sys/types.h>
#include <sys/event.h>
@@ -49,6 +54,8 @@
/* Choose the best method platform specific to use in apr_pollset */
#ifdef HAVE_KQUEUE
#define POLLSET_USES_KQUEUE
+#elif defined(HAVE_PORT_CREATE)
+#define POLLSET_USES_PORT
#elif defined(HAVE_EPOLL)
#define POLLSET_USES_EPOLL
#elif defined(HAVE_POLL)
@@ -63,7 +70,7 @@
#define POLL_USES_SELECT
#endif
-#if defined(POLLSET_USES_KQUEUE) || defined(POLLSET_USES_EPOLL)
+#if defined(POLLSET_USES_KQUEUE) || defined(POLLSET_USES_EPOLL) || defined(POLLSET_USES_PORT)
#include "apr_ring.h"