Author: pquerna
Date: Sun Jul 5 23:00:40 2009
New Revision: 791333
URL: http://svn.apache.org/viewvc?rev=791333&view=rev
Log:
For poll() backend of pollcb API, return ENOTIMPL if APR was compiled with threads.
Modified:
apr/apr/trunk/poll/unix/poll.c
Modified: apr/apr/trunk/poll/unix/poll.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/poll.c?rev=791333&r1=791332&r2=791333&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/poll.c (original)
+++ apr/apr/trunk/poll/unix/poll.c Sun Jul 5 23:00:40 2009
@@ -304,6 +304,10 @@
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)) {
|