summaryrefslogtreecommitdiff
path: root/poll
diff options
context:
space:
mode:
authorPaul Querna <pquerna@apache.org>2009-07-05 23:00:40 +0000
committerPaul Querna <pquerna@apache.org>2009-07-05 23:00:40 +0000
commit09bd4f413458530ac74fbd5d00d8c1a805a80a8f (patch)
tree24488efd73e6fab726d8e642f8308dfe438fac5c /poll
parent10442f5ba8122019072e8dd51431b7bd425650f0 (diff)
downloadapr-09bd4f413458530ac74fbd5d00d8c1a805a80a8f.tar.gz
For poll() backend of pollcb API, return ENOTIMPL if APR was compiled with threads.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@791333 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll')
-rw-r--r--poll/unix/poll.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/poll/unix/poll.c b/poll/unix/poll.c
index c665948ab..3727b5b83 100644
--- a/poll/unix/poll.c
+++ b/poll/unix/poll.c
@@ -304,6 +304,10 @@ static apr_status_t impl_pollcb_create(apr_pollcb_t *pollcb,
apr_pool_t *p,
apr_uint32_t flags)
{
+#if APR_HAS_THREADS
+ return APR_ENOTIMPL;
+#endif
+
pollcb->fd = -1;
#ifdef WIN32
if (!APR_HAVE_LATE_DLL_FUNC(WSAPoll)) {