Author: tjansen Date: Thu Oct 15 17:58:34 2009 New Revision: 1187 Log: Fixed build for --enable-openwrt. Modified: trunk/pisacd/cdmain.c Modified: trunk/pisacd/cdmain.c ============================================================================== --- trunk/pisacd/cdmain.c Thu Oct 15 17:44:47 2009 (r1186) +++ trunk/pisacd/cdmain.c Thu Oct 15 17:58:34 2009 (r1187) @@ -919,9 +919,11 @@ #ifdef CONFIG_PISA_OPENWRT int tmfd; - tmfd = pisa_maxInt(cd_ctx.tunnel, cd_ctx.fd_pacli); + tmfd = pisa_maxInt(cd_ctx.tunnel, cd_ctx.fd_pisaconf); +#ifdef REMOVE_PREAUTH_CODE + tmfd = pisa_maxInt(tmfd, cd_ctx.fd_pacli); tmfd = pisa_maxInt(tmfd, cd_ctx.fd_pasrv); - tmfd = pisa_maxInt(tmfd, cd_ctx.fd_pisaconf); +#endif /* REMOVE_PREAUTH_CODE */ tmfd = pisa_maxInt(tmfd, cd_ctx.tunc); tmfd = pisa_maxInt(tmfd, cd_ctx.tund); maxfd = tmfd + 1;