apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r744617 - /apr/apr/trunk/poll/unix/poll.c
Date Sun, 15 Feb 2009 07:10:00 GMT
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 *));
 



Mime
View raw message