From f39ef5def736f7b00ed12b3ed76d6e3a014ae490 Mon Sep 17 00:00:00 2001 From: cantor Date: Tue, 22 Jul 2003 02:37:06 +0000 Subject: [PATCH] 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 --- shar/shar-utils.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.1.4