diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c index 34c8d06cc3b6..b4829feca17e 100644 --- a/lib/libc/gen/getgrent.c +++ b/lib/libc/gen/getgrent.c @@ -290,9 +290,11 @@ grscan(search, gid, name) break; #endif if (!(cp = strsep(&bp, ":\n"))) +#ifdef YP if (_ypfound) return(1); else +#endif continue; #ifdef YP /*