From: Guido Serassio Date: Wed, 9 Jul 2008 14:24:18 +0000 (+0200) Subject: Windows port: Restore _get_osfhandle() usage in FD_CLR and FD_SET macros X-Git-Tag: SQUID_3_0_STABLE8~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08e8032e5b3b930496342c775cd63a32b053fcc0;p=thirdparty%2Fsquid.git Windows port: Restore _get_osfhandle() usage in FD_CLR and FD_SET macros --- diff --git a/include/squid_mswin.h b/include/squid_mswin.h old mode 100644 new mode 100755 index 138f403d51..5d4ad6cc5f --- a/include/squid_mswin.h +++ b/include/squid_mswin.h @@ -246,7 +246,7 @@ typedef char * caddr_t; #undef FD_CLR #define FD_CLR(fd, set) do { \ u_int __i; \ - SOCKET __sock = fd_table[fd].win32.handle; \ + SOCKET __sock = _get_osfhandle(fd); \ for (__i = 0; __i < ((fd_set FAR *)(set))->fd_count ; __i++) { \ if (((fd_set FAR *)(set))->fd_array[__i] == __sock) { \ while (__i < ((fd_set FAR *)(set))->fd_count-1) { \ @@ -263,7 +263,7 @@ typedef char * caddr_t; #undef FD_SET #define FD_SET(fd, set) do { \ u_int __i; \ - SOCKET __sock = fd_table[fd].win32.handle; \ + SOCKET __sock = _get_osfhandle(fd); \ for (__i = 0; __i < ((fd_set FAR *)(set))->fd_count; __i++) { \ if (((fd_set FAR *)(set))->fd_array[__i] == (__sock)) { \ break; \