From 40c6b893d8592bcb26e09c972be2891c2b79ff1f Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Wed, 13 Nov 2002 13:49:29 +0000 Subject: Take __FreeBSD_version into account when BOOTSTRAPPING. --- usr.bin/xargs/Makefile | 4 ---- usr.bin/xargs/xargs.c | 12 +++++++----- usr.bin/xinstall/Makefile | 4 +++- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/xargs/Makefile b/usr.bin/xargs/Makefile index 1f258ca68292..1f33228d8035 100644 --- a/usr.bin/xargs/Makefile +++ b/usr.bin/xargs/Makefile @@ -5,8 +5,4 @@ PROG= xargs SRCS= xargs.c strnsubst.c WARNS?= 4 -.if defined(BOOTSTRAPPING) -CFLAGS+=-DBOOTSTRAPPING -.endif - .include diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c index 96ad3b44d482..5414e65f99dd 100644 --- a/usr.bin/xargs/xargs.c +++ b/usr.bin/xargs/xargs.c @@ -51,12 +51,13 @@ static char sccsid[] = "@(#)xargs.c 8.1 (Berkeley) 6/6/93"; #include __FBSDID("$FreeBSD$"); -#include +#include #include #include #include -#ifndef BOOTSTRAPPING +#if (__FreeBSD_version >= 450002 && __FreeBSD_version < 500000) || \ + __FreeBSD_version >= 500017 #include #endif #include @@ -542,10 +543,11 @@ prompt(void) (void)fflush(stderr); if ((response = fgetln(ttyfp, &rsize)) == NULL || regcomp(&cre, -#ifdef BOOTSTRAPPING - "^[yY]", -#else +#if (__FreeBSD_version >= 450002 && __FreeBSD_version < 500000) || \ + __FreeBSD_version >= 500017 nl_langinfo(YESEXPR), +#else + "^[yY]", #endif REG_BASIC) != 0) { (void)fclose(ttyfp); diff --git a/usr.bin/xinstall/Makefile b/usr.bin/xinstall/Makefile index e0886ed7afdb..2ed1eea375c0 100644 --- a/usr.bin/xinstall/Makefile +++ b/usr.bin/xinstall/Makefile @@ -6,7 +6,9 @@ PROGNAME= install SRCS= xinstall.c MAN= install.1 -.if defined(BOOTSTRAPPING) +.if defined(BOOTSTRAPPING) && \ + ( ${BOOTSTRAPPING} < 400021 || \ + ( ${BOOTSTRAPPING} >= 500000 && ${BOOTSTRAPPING} < 500007 )) .PATH: ${.CURDIR}/../../lib/libc/gen SRCS+= strtofflags.c .endif -- cgit v1.3