From: Guido Serassio Date: Wed, 9 Jul 2008 14:21:15 +0000 (+0200) Subject: Windows port: Restore _get_osfhandle() usage in FD_CLR and FD_SET macros X-Git-Tag: SQUID_3_1_0_1~49^2~158 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d64d9f889e8dce17fb437e3a648799c8cf04bc0;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 index 3115a12707..b035499e8c 100755 --- a/include/squid_mswin.h +++ b/include/squid_mswin.h @@ -261,7 +261,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) { \ @@ -278,7 +278,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; \