You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2010/08/20 23:26:38 UTC

svn commit: r987639 - /apr/apr/trunk/poll/unix/poll.c

Author: trawick
Date: Fri Aug 20 21:26:37 2010
New Revision: 987639

URL: http://svn.apache.org/viewvc?rev=987639&view=rev
Log:
disable entire impl_pollcb_create() function if APR_HAS_THREADS
instead of just inserting a return at the top

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=987639&r1=987638&r2=987639&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/poll.c (original)
+++ apr/apr/trunk/poll/unix/poll.c Fri Aug 20 21:26:37 2010
@@ -307,8 +307,7 @@ static apr_status_t impl_pollcb_create(a
 {
 #if APR_HAS_THREADS
     return APR_ENOTIMPL;
-#endif
-
+#else
     pollcb->fd = -1;
 #ifdef WIN32
     if (!APR_HAVE_LATE_DLL_FUNC(WSAPoll)) {
@@ -320,6 +319,7 @@ static apr_status_t impl_pollcb_create(a
     pollcb->copyset = apr_palloc(p, size * sizeof(apr_pollfd_t *));
 
     return APR_SUCCESS;
+#endif
 }
 
 static apr_status_t impl_pollcb_add(apr_pollcb_t *pollcb,