mk: Support strndup(3) in USE_FEATURES.
This commit is contained in:
parent
44cbd6d23e
commit
c023754d0d
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: features-vars.mk,v 1.27 2019/09/02 02:23:03 rillig Exp $
|
||||
# $NetBSD: features-vars.mk,v 1.28 2023/11/09 18:56:45 nia Exp $
|
||||
#
|
||||
# The platforms that are supported by pkgsrc differ in the amount of
|
||||
# functions they provide in the C library (libc). Functions that are
|
||||
|
@ -46,6 +46,7 @@
|
|||
# * glob
|
||||
# * regcomp
|
||||
# * snprintf, vsnprintf
|
||||
# * strndup
|
||||
# * strnlen
|
||||
# * utimes
|
||||
# * nbcompat: All of the above.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: features.mk,v 1.10 2022/01/14 14:46:50 schmonz Exp $
|
||||
# $NetBSD: features.mk,v 1.11 2023/11/09 18:56:45 nia 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 cdefs err fts_close fts_open fts_read fts_set getline getopt_long glob nbcompat regcomp setenv snprintf strnlen utimes vsnprintf warn
|
||||
. for f in asprintf cdefs err fts_close fts_open fts_read fts_set getline getopt_long glob nbcompat regcomp setenv snprintf strndup strnlen utimes vsnprintf warn
|
||||
. if !empty(MISSING_FEATURES:M${f})
|
||||
_FEATURE_USE_NBCOMPAT= yes
|
||||
. endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Darwin.mk,v 1.134 2023/11/09 16:33:53 nia Exp $
|
||||
# $NetBSD: Darwin.mk,v 1.135 2023/11/09 18:56:45 nia Exp $
|
||||
#
|
||||
# Variable definitions for the Darwin operating system.
|
||||
|
||||
|
@ -253,7 +253,7 @@ CONFIGURE_ENV+= gl_cv_func_getcwd_abort_bug=no
|
|||
|
||||
# strnlen(3) and getline(3) are available from Lion onwards
|
||||
.if ${OPSYS_VERSION} < 100700
|
||||
_OPSYS_MISSING_FEATURES+= strnlen getline
|
||||
_OPSYS_MISSING_FEATURES+= strndup strnlen getline
|
||||
_OPSYS_SUPPORTS_MKTOOLS= no
|
||||
.else
|
||||
_OPSYS_SUPPORTS_MKTOOLS= yes
|
||||
|
|
Loading…
Reference in New Issue