akosut 96/07/27 17:03:17
Modified: src http_main.c Log: Fix compiler warning on HP-UX Revision Changes Path 1.56 +9 -0 apache/src/http_main.c Index: http_main.c =================================================================== RCS file: /export/home/cvs/apache/src/http_main.c,v retrieving revision 1.55 retrieving revision 1.56 diff -C3 -r1.55 -r1.56 *** http_main.c 1996/07/27 04:09:03 1.55 --- http_main.c 1996/07/28 00:03:15 1.56 *************** *** 309,315 **** --- 309,320 ---- * slurp up any data that arrives... */ + #ifdef HPUX + while ((select_rv = select (sd + 1, (int*)&fds_read, NULL, (int*)&fds_err, + &tv)) > 0) { + #else while ((select_rv = select (sd + 1, &fds_read, NULL, &fds_err, &tv)) > 0) { + #endif if ((read_rv = read (sd, dummybuf, sizeof(dummybuf))) <= 0) break; else { *************** *** 1393,1399 **** --- 1398,1408 ---- FD_SET(sd,&fds); do + #ifdef HPUX + csd = select(sd+1, (int*)&fds, NULL, NULL, NULL); + #else csd = select(sd+1, &fds, NULL, NULL, NULL); + #endif while(csd < 0 && errno == EINTR); if(csd < 0)