Make setenv(3) a libnbcompat-provided feature.

This commit is contained in:
tnn 2008-01-14 23:06:26 +00:00
parent 41c4b93e60
commit 17f6f25e3a
2 changed files with 12 additions and 4 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: features-vars.mk,v 1.14 2007/11/29 08:53:14 rillig Exp $
# $NetBSD: features-vars.mk,v 1.15 2008/01/14 23:06:26 tnn Exp $
#
# The platforms that are supported by pkgsrc differ in the amount of
# functions they provide in the C library (libc). Functions that are
@ -59,7 +59,7 @@
#
# Keywords: feature features asprintf vasprintf err errx warn warnx
# Keywords: fts fts_open fts_read fts_set fts_close getopt_long
# Keywords: getprogname setprogname glob regcomp snprintf vsnprintf
# Keywords: getprogname setprogname glob regcomp setenv snprintf vsnprintf
# Keywords: utimes libnbcompat nbcompat
_VARGROUPS+= features
@ -134,6 +134,14 @@ MISSING_FEATURES+= ${_feature_}
. endif
.endfor
.for _feature_ in setenv
. if !empty(USE_FEATURES:M${_feature_})
. if !empty(MACHINE_PLATFORM:MHPUX-11.11-hppa) # XXX too narrow?
MISSING_FEATURES+= ${_feature_}
. endif
. endif
.endfor
.for _feature_ in snprintf vsnprintf
. if !empty(USE_FEATURES:M${_feature_})
. if ${OPSYS} == "IRIX"

View file

@ -1,4 +1,4 @@
# $NetBSD: features.mk,v 1.5 2007/11/20 17:49:49 rillig Exp $
# $NetBSD: features.mk,v 1.6 2008/01/14 23:06:26 tnn Exp $
#
# This file is included by bsd.pkg.mk.
#
@ -36,7 +36,7 @@ LIBS+= ${FEATURE_LIBS}
# libnbcompat provides many of the current features.
#
_FEATURE_USE_NBCOMPAT?= no
. for f in asprintf err fts_close fts_open fts_read fts_set getopt_long glob nbcompat regcomp snprintf utimes vsnprintf warn
. for f in asprintf err fts_close fts_open fts_read fts_set getopt_long glob nbcompat regcomp setenv snprintf utimes vsnprintf warn
. if !empty(MISSING_FEATURES:M${f})
_FEATURE_USE_NBCOMPAT= yes
. endif