You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mt...@apache.org on 2009/02/15 08:10:00 UTC

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

Author: mturk
Date: Sun Feb 15 07:10:00 2009
New Revision: 744617

URL: http://svn.apache.org/viewvc?rev=744617&view=rev
Log:
On Win32 use pollcb only if winsock supports WSAPoll

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=744617&r1=744616&r2=744617&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/poll.c (original)
+++ apr/apr/trunk/poll/unix/poll.c Sun Feb 15 07:10:00 2009
@@ -310,6 +310,12 @@
                                        apr_uint32_t flags)
 {
     pollcb->fd = -1;
+#ifdef WIN32
+    if (!APR_HAVE_LATE_DLL_FUNC(WSAPoll)) {
+        return APR_ENOTIMPL;
+    }
+#endif
+
     pollcb->pollset.ps = apr_palloc(p, size * sizeof(struct pollfd));
     pollcb->copyset = apr_palloc(p, size * sizeof(apr_pollfd_t *));