apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r987639 - /apr/apr/trunk/poll/unix/poll.c
Date Fri, 20 Aug 2010 21:26:38 GMT
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,



Mime
View raw message