apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: apr/poll/unix poll.c
Date Fri, 02 Aug 2002 05:12:35 GMT
brianp      2002/08/01 22:12:35

  Modified:    poll/unix poll.c
  Log:
  One more fix for socket/file incompatibility on win32
  
  Revision  Changes    Path
  1.15      +5 -1      apr/poll/unix/poll.c
  
  Index: poll.c
  ===================================================================
  RCS file: /home/cvs/apr/poll/unix/poll.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- poll.c	2 Aug 2002 05:07:16 -0000	1.14
  +++ poll.c	2 Aug 2002 05:12:35 -0000	1.15
  @@ -254,7 +254,7 @@
           }
           else {
   #ifdef WIN32
  -            return EBADF;
  +            return APR_EBADF;
   #else
               fd = aprset[i].desc.f->filedes;
   #endif
  @@ -351,7 +351,11 @@
           fd = descriptor->desc.s->socketdes;
       }
       else {
  +#ifdef WIN32
  +        return APR_EBADF;
  +#else
           fd = descriptor->desc.f->filedes;
  +#endif
       }
       if (descriptor->reqevents & APR_POLLIN) {
           FD_SET(fd, &(pollset->readset));
  
  
  

Mime
View raw message