Ticket #13657: patch-stellarium_leopard_fd-isset.diff
File patch-stellarium_leopard_fd-isset.diff, 911 bytes (added by raimue (Rainer Müller), 17 years ago) |
---|
-
src/Telescope.cpp
old new 600 600 const fd_set &write_fds) { 601 601 if (!IS_INVALID_SOCKET(fd)) { 602 602 if (wait_for_connection_establishment) { 603 if (FD_ISSET(fd, &write_fds)) {603 if (FD_ISSET(fd,const_cast<fd_set *>(&write_fds))) { 604 604 wait_for_connection_establishment = false; 605 605 int err = 0; 606 606 SOCKLEN_T length = sizeof(err); … … 620 620 } 621 621 } 622 622 } else { // connection already established 623 if (FD_ISSET(fd, &write_fds)) {623 if (FD_ISSET(fd,const_cast<fd_set *>(&write_fds))) { 624 624 performWriting(); 625 625 } 626 if (!IS_INVALID_SOCKET(fd) && FD_ISSET(fd, &read_fds)) {626 if (!IS_INVALID_SOCKET(fd) && FD_ISSET(fd,const_cast<fd_set *>(&read_fds))) { 627 627 performReading(); 628 628 } 629 629 }