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  
    600600                                   const fd_set &write_fds) {
    601601  if (!IS_INVALID_SOCKET(fd)) {
    602602    if (wait_for_connection_establishment) {
    603       if (FD_ISSET(fd,&write_fds)) {
     603      if (FD_ISSET(fd,const_cast<fd_set *>(&write_fds))) {
    604604        wait_for_connection_establishment = false;
    605605        int err = 0;
    606606        SOCKLEN_T length = sizeof(err);
     
    620620        }
    621621      }
    622622    } else { // connection already established
    623       if (FD_ISSET(fd,&write_fds)) {
     623      if (FD_ISSET(fd,const_cast<fd_set *>(&write_fds))) {
    624624        performWriting();
    625625      }
    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))) {
    627627        performReading();
    628628      }
    629629    }