diff options
author | bz <bz@FreeBSD.org> | 2004-11-13 20:40:32 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2004-11-13 20:40:32 +0000 |
commit | 4b83c5852a5bcba28ed7ce5d13ff021642859772 (patch) | |
tree | da33d2aed5fb6a0c2319fb0d10f0957f518eee99 /lib/libc | |
parent | a67c7e75123103251e304a51ba19d0530b75981d (diff) | |
download | FreeBSD-src-4b83c5852a5bcba28ed7ce5d13ff021642859772.zip FreeBSD-src-4b83c5852a5bcba28ed7ce5d13ff021642859772.tar.gz |
Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
If turned on no NIS support and related programs will be built.
Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il>
PR: bin/68303
No objections: des, gshapiro, nectar
Reviewed by: ru
Approved by: rwatson (mentor)
MFC after: 2 weeks
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/Makefile | 2 | ||||
-rw-r--r-- | lib/libc/gen/getnetgrent.c | 2 | ||||
-rw-r--r-- | lib/libc/net/rcmd.c | 2 | ||||
-rw-r--r-- | lib/libc/rpc/netnamer.c | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 95356b9..169a366 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -60,7 +60,7 @@ NOASM= .if ${MACHINE_ARCH} == "arm" .include "${.CURDIR}/softfloat/Makefile.inc" .endif -.if !defined(NO_YP_LIBC) +.if !defined(NO_NIS) CFLAGS+= -DYP .include "${.CURDIR}/yp/Makefile.inc" .endif diff --git a/lib/libc/gen/getnetgrent.c b/lib/libc/gen/getnetgrent.c index 2431fd7..04e2e88 100644 --- a/lib/libc/gen/getnetgrent.c +++ b/lib/libc/gen/getnetgrent.c @@ -202,7 +202,7 @@ setnetgrent(const char *group) return; } #else - if (netf = fopen(_PATH_NETGROUP, "r")) { + if ((netf = fopen(_PATH_NETGROUP, "r"))) { #endif if (parse_netgrp(group)) endnetgrent(); diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c index fcdd639..1ad073d 100644 --- a/lib/libc/net/rcmd.c +++ b/lib/libc/net/rcmd.c @@ -55,8 +55,8 @@ __FBSDID("$FreeBSD$"); #include <stdio.h> #include <ctype.h> #include <string.h> -#ifdef YP #include <rpc/rpc.h> +#ifdef YP #include <rpcsvc/yp_prot.h> #include <rpcsvc/ypclnt.h> #endif diff --git a/lib/libc/rpc/netnamer.c b/lib/libc/rpc/netnamer.c index 3777e16..1829a45 100644 --- a/lib/libc/rpc/netnamer.c +++ b/lib/libc/rpc/netnamer.c @@ -58,7 +58,9 @@ __FBSDID("$FreeBSD$"); #include "un-namespace.h" static char *OPSYS = "unix"; +#ifdef YP static char *NETID = "netid.byname"; +#endif static char *NETIDFILE = "/etc/netid"; static int getnetid( char *, char * ); |