wrowe 2002/08/02 12:48:49
Modified: poll/unix poll.c
Log:
Cleanup the last emit ... one final fd-as-socket problem.
These should really become HAVE_FILES_AS_SOCKETS or some other macro
Revision Changes Path
1.20 +4 -0 apr/poll/unix/poll.c
Index: poll.c
===================================================================
RCS file: /home/cvs/apr/poll/unix/poll.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- poll.c 2 Aug 2002 18:51:53 -0000 1.19
+++ poll.c 2 Aug 2002 19:48:49 -0000 1.20
@@ -412,7 +412,11 @@
fd = descriptor->desc.s->socketdes;
}
else {
+#ifdef WIN32
+ return APR_EBADF;
+#else
fd = descriptor->desc.f->filedes;
+#endif
}
for (i = 0; i < pollset->nelts; i++) {