From: cantor Date: Tue, 22 Jul 2003 02:37:06 +0000 (+0000) Subject: Conditional redefine of svc_fdset to onc_svc_fdset. X-Git-Tag: 2.4~2209 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=f39ef5def736f7b00ed12b3ed76d6e3a014ae490;p=shibboleth%2Fsp.git Conditional redefine of svc_fdset to onc_svc_fdset. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@651 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/shar/shar-utils.cpp b/shar/shar-utils.cpp index 8ead704..ade6ddf 100644 --- a/shar/shar-utils.cpp +++ b/shar/shar-utils.cpp @@ -26,6 +26,10 @@ #include #include +#ifdef USE_OUR_ONCRPC +# define svc_fdset onc_svc_fdset +#endif + using namespace std; using namespace shibboleth; using namespace shibtarget; @@ -112,7 +116,7 @@ void SharChild::run() fd_set readfds; struct timeval tv = { 0, 0 }; - while(running && FD_ISSET(sock, &onc_svc_fdset)) { + while(running && FD_ISSET(sock, &svc_fdset)) { FD_ZERO(&readfds); FD_SET(sock, &readfds); tv.tv_sec = 1;